-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: skip underscore character during candidate lookup
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#![allow(unused_imports)] | ||
|
||
mod inner { | ||
pub enum Example { | ||
ExOne, | ||
} | ||
} | ||
|
||
mod reexports { | ||
pub use crate::inner::Example as _; | ||
} | ||
|
||
use crate::reexports::*; | ||
//~^ SUGGESTION: use inner::Example::ExOne | ||
|
||
fn main() { | ||
ExOne; | ||
//~^ ERROR: cannot find value `ExOne` in this scope | ||
} |
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,14 @@ | ||
error[E0425]: cannot find value `ExOne` in this scope | ||
--> $DIR/issue-116164.rs:17:5 | ||
| | ||
LL | ExOne; | ||
| ^^^^^ not found in this scope | ||
| | ||
help: consider importing this unit variant | ||
| | ||
LL + use inner::Example::ExOne; | ||
| | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0425`. |