mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +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; | ```
26 lines
802 B
Plaintext
26 lines
802 B
Plaintext
error[E0432]: unresolved import `test`
|
|
--> $DIR/issue-37887.rs:3:9
|
|
|
|
|
LL | use test::*;
|
|
| ^^^^ you might be missing crate `test`
|
|
|
|
|
help: consider importing the `test` crate
|
|
|
|
|
LL + extern crate test;
|
|
|
|
|
|
|
error[E0658]: use of unstable library feature 'test'
|
|
--> $DIR/issue-37887.rs:2:5
|
|
|
|
|
LL | extern crate test;
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information
|
|
= help: add `#![feature(test)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0432, E0658.
|
|
For more information about an error, try `rustc --explain E0432`.
|