-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve suggestion for extern crate self error message
- Loading branch information
Showing
11 changed files
with
75 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// edition:2018 | ||
// compile-flags:--extern foo --extern bar | ||
|
||
use bar::foo; //~ ERROR can't find crate for `bar` | ||
use foo::bar; //~ ERROR can't find crate for `foo` | ||
use bar::foo; | ||
//~^^ ERROR unresolved imports `bar::foo`, `foo::bar` | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
error[E0463]: can't find crate for `foo` | ||
error[E0463]: can't find crate for `bar` | ||
--> $DIR/deadlock.rs:4:5 | ||
| | ||
LL | use bar::foo; | ||
| ^^^ can't find crate | ||
|
||
error[E0463]: can't find crate for `foo` | ||
--> $DIR/deadlock.rs:5:5 | ||
| | ||
LL | use foo::bar; | ||
| ^^^ can't find crate | ||
|
||
error: aborting due to previous error | ||
error[E0432]: unresolved imports `bar::foo`, `foo::bar` | ||
--> $DIR/deadlock.rs:4:5 | ||
| | ||
LL | use bar::foo; | ||
| ^^^^^^^^ | ||
LL | use foo::bar; | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0463`. | ||
Some errors have detailed explanations: E0432, E0463. | ||
For more information about an error, try `rustc --explain E0432`. |