-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #101477: Recover from typo where == is used in place of =
- Loading branch information
1 parent
e7c7aa7
commit ddb225f
Showing
8 changed files
with
73 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
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,10 @@ | ||
// run-rustfix | ||
|
||
#[allow(dead_code)] | ||
enum Demo { | ||
A = 1, | ||
B = 2 //~ ERROR unexpected `==` | ||
//~^ expected item, found `==` | ||
} | ||
|
||
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,10 @@ | ||
// run-rustfix | ||
|
||
#[allow(dead_code)] | ||
enum Demo { | ||
A = 1, | ||
B == 2 //~ ERROR unexpected `==` | ||
//~^ expected item, found `==` | ||
} | ||
|
||
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: unexpected `==` | ||
--> $DIR/issue-101477-enum.rs:6:7 | ||
| | ||
LL | B == 2 | ||
| ^^ help: try using `=` instead | ||
|
||
error: expected item, found `==` | ||
--> $DIR/issue-101477-enum.rs:6:7 | ||
| | ||
LL | B == 2 | ||
| ^^ expected item | ||
|
||
error: aborting due to 2 previous errors | ||
|
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,6 @@ | ||
// run-rustfix | ||
|
||
fn main() { | ||
let x = 2; //~ ERROR unexpected `==` | ||
println!("x: {}", x) | ||
} |
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,6 @@ | ||
// run-rustfix | ||
|
||
fn main() { | ||
let x == 2; //~ ERROR unexpected `==` | ||
println!("x: {}", x) | ||
} |
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,8 @@ | ||
error: unexpected `==` | ||
--> $DIR/issue-101477-let.rs:4:11 | ||
| | ||
LL | let x == 2; | ||
| ^^ help: try using `=` instead | ||
|
||
error: aborting due to previous error | ||
|