Rollup merge of #29796 - barosl:unresolved-import-extern-crate, r=steveklabnik
The command-line error message for E0432 does mention the possibility of missing the `extern crate` declaration, but the detailed error message for it doesn't. Fixes #29517.
This commit is contained in:
commit
4c12530575
1 changed files with 9 additions and 0 deletions
|
|
@ -806,6 +806,15 @@ mod something {
|
|||
pub struct Foo;
|
||||
}
|
||||
```
|
||||
|
||||
Or, if you tried to use a module from an external crate, you may have missed
|
||||
the `extern crate` declaration:
|
||||
|
||||
```
|
||||
extern crate homura; // Required to use the `homura` crate
|
||||
|
||||
use homura::Madoka;
|
||||
```
|
||||
"##,
|
||||
|
||||
E0433: r##"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue