rust/tests/ui/unresolved/unresolved-import.stderr

51 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `foo`
2019-01-16 14:30:41 -06:00
--> $DIR/unresolved-import.rs:1:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use foo::bar;
2019-08-05 09:50:37 -05:00
| ^^^ maybe a missing crate `foo`?
|
= help: consider adding `extern crate foo` to use the `foo` crate
2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `bar::Baz`
--> $DIR/unresolved-import.rs:5:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use bar::Baz as x;
2019-01-16 14:30:41 -06:00
| ^^^^^---^^^^^
| | |
| | help: a similar name exists in the module: `Bar`
| no `Baz` in `bar`
2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `food::baz`
--> $DIR/unresolved-import.rs:10:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use food::baz;
2019-01-16 14:30:41 -06:00
| ^^^^^^---
| | |
| | help: a similar name exists in the module: `bag`
| no `baz` in `food`
2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `food::beens`
--> $DIR/unresolved-import.rs:15:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use food::{beens as Foo};
2019-01-16 14:30:41 -06:00
| -----^^^^^^^
| |
| no `beens` in `food`
| help: a similar name exists in the module: `beans`
2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `MyEnum`
--> $DIR/unresolved-import.rs:39:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use MyEnum::*;
2019-01-16 14:30:41 -06:00
| ^^^^^^ help: a similar path exists: `self::MyEnum`
2018-08-08 07:28:26 -05:00
error[E0432]: unresolved import `Enum`
--> $DIR/unresolved-import.rs:49:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | use Enum::*;
2019-01-16 14:30:41 -06:00
| ^^^^ help: a similar path exists: `self::Enum`
2018-08-08 07:28:26 -05:00
error: aborting due to 6 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0432`.