-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "resolve: Avoid "self-confirming" import resolutions in one mo…
…re case"
- Loading branch information
1 parent
8fe73e8
commit b20bce8
Showing
3 changed files
with
41 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error: inconsistent resolution for an import | ||
--> $DIR/issue-62767.rs:24:5 | ||
| | ||
LL | use bar::bar; | ||
| ^^^^^^^^ | ||
|
||
error[E0432]: unresolved import `Same` | ||
--> $DIR/issue-62767.rs:12:5 | ||
| | ||
LL | use Same::Same; | ||
| ^^^^ `Same` is a variant, not a module | ||
|
||
error[E0432]: unresolved import `bar::bar` | ||
--> $DIR/issue-62767.rs:24:5 | ||
| | ||
LL | use bar::bar; | ||
| ^^^^^^^^ no `bar` in `foo::bar::bar` | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0432`. |