mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +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; | ``` |
||
---|---|---|
.. | ||
extern | ||
keyword-false-as-identifier.rs | ||
keyword-false-as-identifier.stderr | ||
keyword-self-as-identifier.rs | ||
keyword-self-as-identifier.stderr | ||
keyword-self-as-type-param.rs | ||
keyword-self-as-type-param.stderr | ||
keyword-super-as-identifier.rs | ||
keyword-super-as-identifier.stderr | ||
keyword-super.rs | ||
keyword-super.stderr | ||
keyword-true-as-identifier.rs | ||
keyword-true-as-identifier.stderr |