Don't recommend extern crate syntax
This commit is contained in:
parent
4be0675589
commit
3bfb4c3c25
19 changed files with 27 additions and 27 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use foo::bar; //~ ERROR unresolved import `foo` [E0432]
|
||||
//~^ maybe a missing `extern crate foo;`?
|
||||
//~^ maybe a missing crate `foo`?
|
||||
|
||||
use bar::Baz as x; //~ ERROR unresolved import `bar::Baz` [E0432]
|
||||
//~| no `Baz` in `bar`
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ error[E0432]: unresolved import `foo`
|
|||
--> $DIR/unresolved-import.rs:1:5
|
||||
|
|
||||
LL | use foo::bar;
|
||||
| ^^^ maybe a missing `extern crate foo;`?
|
||||
| ^^^ maybe a missing crate `foo`?
|
||||
|
||||
error[E0432]: unresolved import `bar::Baz`
|
||||
--> $DIR/unresolved-import.rs:4:5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue