fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.3 KiB48 linesraw
1error[E0432]: unresolved import `foo`
2  --> $DIR/unresolved-import.rs:1:5
3   |
4LL | use foo::bar;
5   |     ^^^ maybe a missing crate `foo`?
6
7error[E0432]: unresolved import `bar::Baz`
8  --> $DIR/unresolved-import.rs:4:5
9   |
10LL | use bar::Baz as x;
11   |     ^^^^^---^^^^^
12   |     |    |
13   |     |    help: a similar name exists in the module: `Bar`
14   |     no `Baz` in `bar`
15
16error[E0432]: unresolved import `food::baz`
17  --> $DIR/unresolved-import.rs:9:5
18   |
19LL | use food::baz;
20   |     ^^^^^^---
21   |     |     |
22   |     |     help: a similar name exists in the module: `bag`
23   |     no `baz` in `food`
24
25error[E0432]: unresolved import `food::beens`
26  --> $DIR/unresolved-import.rs:14:12
27   |
28LL | use food::{beens as Foo};
29   |            -----^^^^^^^
30   |            |
31   |            no `beens` in `food`
32   |            help: a similar name exists in the module: `beans`
33
34error[E0432]: unresolved import `MyEnum`
35  --> $DIR/unresolved-import.rs:38:9
36   |
37LL |     use MyEnum::*;
38   |         ^^^^^^ help: a similar path exists: `self::MyEnum`
39
40error[E0432]: unresolved import `Enum`
41  --> $DIR/unresolved-import.rs:48:9
42   |
43LL |     use Enum::*;
44   |         ^^^^ help: a similar path exists: `self::Enum`
45
46error: aborting due to 6 previous errors
47
48For more information about this error, try `rustc --explain E0432`.