mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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; | ```
15 lines
396 B
Plaintext
15 lines
396 B
Plaintext
error[E0433]: failed to resolve: you might be missing crate `r#mod`
|
|
--> $DIR/issue-61732.rs:3:15
|
|
|
|
|
LL | pub(in crate::r#mod) fn main() {}
|
|
| ^^^^^ you might be missing crate `r#mod`
|
|
|
|
|
help: consider importing the `r#mod` crate
|
|
|
|
|
LL + extern crate r#mod;
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|