-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove importing suggestions when there is a shadowed typo canddiate
- Loading branch information
1 parent
b17491c
commit 2a229c9
Showing
4 changed files
with
58 additions
and
28 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,5 @@ | ||
use std::io::Read; | ||
|
||
fn f<T: Read, U, Read>() {} //~ ERROR expected trait, found type parameter `Read` | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error[E0404]: expected trait, found type parameter `Read` | ||
--> $DIR/issue-120559.rs:3:9 | ||
| | ||
LL | use std::io::Read; | ||
| ---- you might have meant to refer to this trait | ||
LL | | ||
LL | fn f<T: Read, U, Read>() {} | ||
| ^^^^ ---- found this type parameter | ||
| | | ||
| not a trait | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0404`. |
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