Skip to content

Commit

Permalink
Add test for issue 63116
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Nov 16, 2019
1 parent 9b0214d commit cfe94b4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/ui/parser/issue-63116.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// fixed by #66361
// error-pattern: aborting due to 3 previous errors
impl W <s(f;Y(;]
24 changes: 24 additions & 0 deletions src/test/ui/parser/issue-63116.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
error: this file contains an un-closed delimiter
--> $DIR/issue-63116.rs:3:18
|
LL | impl W <s(f;Y(;]
| - ^
| |
| un-closed delimiter

error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `;`
--> $DIR/issue-63116.rs:3:12
|
LL | impl W <s(f;Y(;]
| ^ expected one of 7 possible tokens

error: expected one of `!`, `&&`, `&`, `(`, `)`, `*`, `+`, `,`, `->`, `...`, `::`, `<`, `>`, `?`, `[`, `_`, `dyn`, `extern`, `fn`, `for`, `impl`, `unsafe`, or lifetime, found `;`
--> $DIR/issue-63116.rs:3:15
|
LL | impl W <s(f;Y(;]
| -^ help: `)` may belong here
| |
| unclosed delimiter

error: aborting due to 3 previous errors

0 comments on commit cfe94b4

Please sign in to comment.