-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #71064 - dwrensha:issue-69130, r=eddyb
fix issue 69130 Closes #69130.
- Loading branch information
Showing
4 changed files
with
33 additions
and
2 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,7 @@ | ||
// Issue 69130: character indexing bug in rustc_errors::CodeSuggestion::splice_lines(). | ||
|
||
enum F { | ||
M (§& u8)} | ||
//~^ ERROR unknown start of token | ||
//~| missing lifetime specifier | ||
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,21 @@ | ||
error: unknown start of token: \u{a7} | ||
--> $DIR/issue-69130.rs:4:4 | ||
| | ||
LL | M (§& u8)} | ||
| ^ | ||
|
||
error[E0106]: missing lifetime specifier | ||
--> $DIR/issue-69130.rs:4:5 | ||
| | ||
LL | M (§& u8)} | ||
| ^ expected named lifetime parameter | ||
| | ||
help: consider introducing a named lifetime parameter | ||
| | ||
LL | enum F<'a> { | ||
LL | M (§&'a u8)} | ||
| | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0106`. |