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.
add test for rust-lang#105210 assertion failure self.lines.iter().all…
…(|r| !r.iter().any(|sc| sc.chr == \'\\t\')) with edition 2021 Fixes rust-lang#105210
- Loading branch information
1 parent
5b5dec3
commit 2171243
Showing
2 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ICE #105210 self.lines.iter().all(|r| !r.iter().any(|sc| sc.chr == \'\\t\')) | ||
// ignore-tidy-tab | ||
//@ edition:2021 | ||
pub fn main() {} | ||
|
||
fn box () { | ||
(( h (const {( default ( await ( await ( (move {await((((}} | ||
//~^ ERROR mismatched closing delimiter: `}` | ||
//~^^ ERROR mismatched closing delimiter: `}` | ||
//~ ERROR this file contains an unclosed delimiter |
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,34 @@ | ||
error: mismatched closing delimiter: `}` | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:7:58 | ||
| | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| - ^^ mismatched closing delimiter | ||
| | | | ||
| | unclosed delimiter | ||
| closing delimiter possibly meant for this | ||
|
||
error: mismatched closing delimiter: `}` | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:7:43 | ||
| | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| - ^ ^ mismatched closing delimiter | ||
| | | | ||
| | unclosed delimiter | ||
| closing delimiter possibly meant for this | ||
|
||
error: this file contains an unclosed delimiter | ||
--> $DIR/parser-ice-ed2021-await-105210.rs:10:52 | ||
| | ||
LL | fn box () { | ||
| - unclosed delimiter | ||
LL | (( h (const {( default ( await ( await ( (move {await((((}} | ||
| -- - unclosed delimiter | ||
| || | ||
| |unclosed delimiter | ||
| unclosed delimiter | ||
... | ||
LL | | ||
| ^ | ||
|
||
error: aborting due to 3 previous errors | ||
|