Skip to content

Commit

Permalink
Add testcase for issue 105209
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Mar 1, 2023
1 parent 94a200b commit a641229
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/parser/issues/issue-105209.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// compile-flags: -Zunpretty=ast-tree
#![c={#![c[)x //~ ERROR mismatched closing delimiter
//~ ERROR this file contains an unclosed delimiter
22 changes: 22 additions & 0 deletions tests/ui/parser/issues/issue-105209.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
error: mismatched closing delimiter: `)`
--> $DIR/issue-105209.rs:2:11
|
LL | #![c={#![c[)x
| ^^ mismatched closing delimiter
| |
| unclosed delimiter

error: this file contains an unclosed delimiter
--> $DIR/issue-105209.rs:3:68
|
LL | #![c={#![c[)x
| - - - - missing open `(` for this delimiter
| | | |
| | | unclosed delimiter
| | unclosed delimiter
| unclosed delimiter
LL |
| ^

error: aborting due to 2 previous errors

0 comments on commit a641229

Please sign in to comment.