mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Rollup merge of #97075 - JohnTitor:issue-81804, r=compiler-errors
Add regression test for #81804 Closes #81804 r? ``@compiler-errors``
This commit is contained in:
commit
aaa0c014e2
9
src/test/ui/parser/issue-81804.rs
Normal file
9
src/test/ui/parser/issue-81804.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// error-pattern: this file contains an unclosed delimiter
|
||||
// error-pattern: this file contains an unclosed delimiter
|
||||
// error-pattern: expected pattern, found `=`
|
||||
// error-pattern: expected one of `)`, `,`, `->`, `where`, or `{`, found `]`
|
||||
// error-pattern: expected item, found `]`
|
||||
|
||||
fn main() {}
|
||||
|
||||
fn p([=(}
|
41
src/test/ui/parser/issue-81804.stderr
Normal file
41
src/test/ui/parser/issue-81804.stderr
Normal file
@ -0,0 +1,41 @@
|
||||
error: this file contains an unclosed delimiter
|
||||
--> $DIR/issue-81804.rs:9:11
|
||||
|
|
||||
LL | fn p([=(}
|
||||
| -- ^
|
||||
| ||
|
||||
| |unclosed delimiter
|
||||
| unclosed delimiter
|
||||
|
||||
error: this file contains an unclosed delimiter
|
||||
--> $DIR/issue-81804.rs:9:11
|
||||
|
|
||||
LL | fn p([=(}
|
||||
| -- ^
|
||||
| ||
|
||||
| |unclosed delimiter
|
||||
| unclosed delimiter
|
||||
|
||||
error: expected pattern, found `=`
|
||||
--> $DIR/issue-81804.rs:9:7
|
||||
|
|
||||
LL | fn p([=(}
|
||||
| ^ expected pattern
|
||||
|
||||
error: expected one of `)`, `,`, `->`, `where`, or `{`, found `]`
|
||||
--> $DIR/issue-81804.rs:9:8
|
||||
|
|
||||
LL | fn p([=(}
|
||||
| ^ -^
|
||||
| | |
|
||||
| | help: `)` may belong here
|
||||
| unclosed delimiter
|
||||
|
||||
error: expected item, found `]`
|
||||
--> $DIR/issue-81804.rs:9:11
|
||||
|
|
||||
LL | fn p([=(}
|
||||
| ^ expected item
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
Loading…
Reference in New Issue
Block a user