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