add test for #105210 assertion failure self.lines.iter().all(|r| !r.iter().any(|sc| sc.chr == \'\\t\')) with edition 2021
Fixes #105210
This commit is contained in:
parent
5b5dec338d
commit
2171243b2b
10
tests/ui/parser/parser-ice-ed2021-await-105210.rs
Normal file
10
tests/ui/parser/parser-ice-ed2021-await-105210.rs
Normal file
@ -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
|
34
tests/ui/parser/parser-ice-ed2021-await-105210.stderr
Normal file
34
tests/ui/parser/parser-ice-ed2021-await-105210.stderr
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user