Skip to content

Commit d14a893

Browse files
authored
Rollup merge of rust-lang#66471 - Alexendoo:test-issue-63116, r=Centril
Add test for issue 63116 Closes rust-lang#63116
2 parents c269580 + cfe94b4 commit d14a893

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/test/ui/parser/issue-63116.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// fixed by #66361
2+
// error-pattern: aborting due to 3 previous errors
3+
impl W <s(f;Y(;]

src/test/ui/parser/issue-63116.stderr

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
error: this file contains an un-closed delimiter
2+
--> $DIR/issue-63116.rs:3:18
3+
|
4+
LL | impl W <s(f;Y(;]
5+
| - ^
6+
| |
7+
| un-closed delimiter
8+
9+
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `;`
10+
--> $DIR/issue-63116.rs:3:12
11+
|
12+
LL | impl W <s(f;Y(;]
13+
| ^ expected one of 7 possible tokens
14+
15+
error: expected one of `!`, `&&`, `&`, `(`, `)`, `*`, `+`, `,`, `->`, `...`, `::`, `<`, `>`, `?`, `[`, `_`, `dyn`, `extern`, `fn`, `for`, `impl`, `unsafe`, or lifetime, found `;`
16+
--> $DIR/issue-63116.rs:3:15
17+
|
18+
LL | impl W <s(f;Y(;]
19+
| -^ help: `)` may belong here
20+
| |
21+
| unclosed delimiter
22+
23+
error: aborting due to 3 previous errors
24+

0 commit comments

Comments
 (0)