]> git.lizzy.rs Git - rust.git/blob - tests/ui/unresolved/unresolved-import.stderr
Rollup merge of #106477 - Nathan-Fenner:nathanf/refined-error-span-trait-impl, r...
[rust.git] / tests / 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    = help: consider adding `extern crate foo` to use the `foo` crate
8
9 error[E0432]: unresolved import `bar::Baz`
10   --> $DIR/unresolved-import.rs:5:5
11    |
12 LL | use bar::Baz as x;
13    |     ^^^^^---^^^^^
14    |     |    |
15    |     |    help: a similar name exists in the module: `Bar`
16    |     no `Baz` in `bar`
17
18 error[E0432]: unresolved import `food::baz`
19   --> $DIR/unresolved-import.rs:10:5
20    |
21 LL | use food::baz;
22    |     ^^^^^^---
23    |     |     |
24    |     |     help: a similar name exists in the module: `bag`
25    |     no `baz` in `food`
26
27 error[E0432]: unresolved import `food::beens`
28   --> $DIR/unresolved-import.rs:15:12
29    |
30 LL | use food::{beens as Foo};
31    |            -----^^^^^^^
32    |            |
33    |            no `beens` in `food`
34    |            help: a similar name exists in the module: `beans`
35
36 error[E0432]: unresolved import `MyEnum`
37   --> $DIR/unresolved-import.rs:39:9
38    |
39 LL |     use MyEnum::*;
40    |         ^^^^^^ help: a similar path exists: `self::MyEnum`
41
42 error[E0432]: unresolved import `Enum`
43   --> $DIR/unresolved-import.rs:49:9
44    |
45 LL |     use Enum::*;
46    |         ^^^^ help: a similar path exists: `self::Enum`
47
48 error: aborting due to 6 previous errors
49
50 For more information about this error, try `rustc --explain E0432`.