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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `foo`
2019-01-16 20:30:41 +00:00
--> $DIR/unresolved-import.rs:1:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use foo::bar;
| ^^^ use of unresolved module or unlinked crate `foo`
|
help: you might be missing a crate named `foo`, add it to your project and import it in your code
|
LL + extern crate foo;
|
2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `bar::Baz`
--> $DIR/unresolved-import.rs:7:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use bar::Baz as x;
2019-01-16 20:30:41 +00:00
| ^^^^^---^^^^^
| | |
| | help: a similar name exists in the module: `Bar`
| no `Baz` in `bar`
2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `food::baz`
--> $DIR/unresolved-import.rs:13:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use food::baz;
2019-01-16 20:30:41 +00:00
| ^^^^^^---
| | |
| | help: a similar name exists in the module: `bag`
| no `baz` in `food`
2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `food::beens`
--> $DIR/unresolved-import.rs:19:12
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use food::{beens as Foo};
2019-01-16 20:30:41 +00:00
| -----^^^^^^^
| |
| no `beens` in `food`
| help: a similar name exists in the module: `beans`
2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `MyEnum`
--> $DIR/unresolved-import.rs:44:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use MyEnum::*;
2019-01-16 20:30:41 +00:00
| ^^^^^^ help: a similar path exists: `self::MyEnum`
2018-08-08 12:28:26 +00:00
error[E0432]: unresolved import `Enum`
--> $DIR/unresolved-import.rs:55:9
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use Enum::*;
2019-01-16 20:30:41 +00:00
| ^^^^ help: a similar path exists: `self::Enum`
2018-08-08 12:28:26 +00:00
error: aborting due to 6 previous errors
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0432`.