b61570ac11
When encountering a name in an import that could have come from a crate that wasn't imported, use a structured suggestion to suggest `extern crate foo;` pointing at the right place in the crate. When encountering `_` in an import, do not suggest `extern crate _;`. ``` error[E0432]: unresolved import `spam` --> $DIR/import-from-missing-star-3.rs:2:9 | LL | use spam::*; | ^^^^ maybe a missing crate `spam`? | help: consider importing the `spam` crate | LL + extern crate spam; | ```
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-110164.rs:5:5
|
|
|
|
|
LL | use _::a;
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-110164.rs:8:5
|
|
|
|
|
LL | use _::*;
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-110164.rs:13:9
|
|
|
|
|
LL | use _::a;
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error: expected identifier, found reserved identifier `_`
|
|
--> $DIR/issue-110164.rs:16:9
|
|
|
|
|
LL | use _::*;
|
|
| ^ expected identifier, found reserved identifier
|
|
|
|
error[E0432]: unresolved import `self::*`
|
|
--> $DIR/issue-110164.rs:1:5
|
|
|
|
|
LL | use self::*;
|
|
| ^^^^^^^ cannot glob-import a module into itself
|
|
|
|
error[E0432]: unresolved import `crate::*`
|
|
--> $DIR/issue-110164.rs:3:5
|
|
|
|
|
LL | use crate::*;
|
|
| ^^^^^^^^ cannot glob-import a module into itself
|
|
|
|
error[E0432]: unresolved import `_`
|
|
--> $DIR/issue-110164.rs:8:5
|
|
|
|
|
LL | use _::*;
|
|
| ^ `_` is not a valid crate or module name
|
|
|
|
error[E0432]: unresolved import `_`
|
|
--> $DIR/issue-110164.rs:5:5
|
|
|
|
|
LL | use _::a;
|
|
| ^ `_` is not a valid crate or module name
|
|
|
|
error[E0432]: unresolved import `_`
|
|
--> $DIR/issue-110164.rs:13:9
|
|
|
|
|
LL | use _::a;
|
|
| ^ `_` is not a valid crate or module name
|
|
|
|
error[E0432]: unresolved import `_`
|
|
--> $DIR/issue-110164.rs:16:9
|
|
|
|
|
LL | use _::*;
|
|
| ^ `_` is not a valid crate or module name
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0432`.
|