forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#62917 - estebank:trailing-slash, r=matklad
Always emit trailing slash error Fix rust-lang#62913. r? @petrochenkov
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
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,3 @@ | ||
"\u\\" | ||
//~^ ERROR incorrect unicode escape sequence | ||
//~| ERROR invalid trailing slash in literal |
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,16 @@ | ||
error: incorrect unicode escape sequence | ||
--> $DIR/issue-62913.rs:1:2 | ||
| | ||
LL | "\u\" | ||
| ^^^ incorrect unicode escape sequence | ||
| | ||
= help: format of unicode escape sequences is `\u{...}` | ||
|
||
error: invalid trailing slash in literal | ||
--> $DIR/issue-62913.rs:1:5 | ||
| | ||
LL | "\u\" | ||
| ^ | ||
|
||
error: aborting due to 2 previous errors | ||
|