forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#113309 - chenyukang:yukang-fix-89640-space, r…
…=Nilstrieb Detect extra space in keyword for better hint Fixes rust-lang#89640 r? `@Nilstrieb` I met the same issue, then found out this old issue :)
- Loading branch information
Showing
5 changed files
with
32 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
Binary file not shown.
Binary file not shown.
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,3 @@ | ||
fn main() { | ||
le t x: i32 = 3; //~ ERROR expected one of | ||
} |
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,13 @@ | ||
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `t` | ||
--> $DIR/issue-89640.rs:2:8 | ||
| | ||
LL | le t x: i32 = 3; | ||
| ^ expected one of 8 possible tokens | ||
| | ||
help: consider removing the space to spell keyword `let` | ||
| | ||
LL | let x: i32 = 3; | ||
| ~~~ | ||
|
||
error: aborting due to previous error | ||
|