Add regression test for #81827
This commit is contained in:
parent
22ee39504a
commit
eab9240627
11
src/test/ui/parser/issue-81827.rs
Normal file
11
src/test/ui/parser/issue-81827.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// error-pattern: this file contains an unclosed delimiter
|
||||
// error-pattern: mismatched closing delimiter: `]`
|
||||
// error-pattern: expected one of `)` or `,`, found `{`
|
||||
|
||||
#![crate_name="0"]
|
||||
|
||||
|
||||
|
||||
fn main() {}
|
||||
|
||||
fn r()->i{0|{#[cfg(r(0{]0
|
35
src/test/ui/parser/issue-81827.stderr
Normal file
35
src/test/ui/parser/issue-81827.stderr
Normal file
@ -0,0 +1,35 @@
|
||||
error: this file contains an unclosed delimiter
|
||||
--> $DIR/issue-81827.rs:11:27
|
||||
|
|
||||
LL | fn r()->i{0|{#[cfg(r(0{]0
|
||||
| - - ^
|
||||
| | |
|
||||
| | unclosed delimiter
|
||||
| unclosed delimiter
|
||||
|
||||
error: this file contains an unclosed delimiter
|
||||
--> $DIR/issue-81827.rs:11:27
|
||||
|
|
||||
LL | fn r()->i{0|{#[cfg(r(0{]0
|
||||
| - - ^
|
||||
| | |
|
||||
| | unclosed delimiter
|
||||
| unclosed delimiter
|
||||
|
||||
error: mismatched closing delimiter: `]`
|
||||
--> $DIR/issue-81827.rs:11:23
|
||||
|
|
||||
LL | fn r()->i{0|{#[cfg(r(0{]0
|
||||
| - ^^ mismatched closing delimiter
|
||||
| | |
|
||||
| | unclosed delimiter
|
||||
| closing delimiter possibly meant for this
|
||||
|
||||
error: expected one of `)` or `,`, found `{`
|
||||
--> $DIR/issue-81827.rs:11:23
|
||||
|
|
||||
LL | fn r()->i{0|{#[cfg(r(0{]0
|
||||
| ^ expected one of `)` or `,`
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
Loading…
x
Reference in New Issue
Block a user