Add test for issue 63116

This commit is contained in:
Alex Macleod 2019-11-16 14:54:09 +00:00
parent 9b0214d9c5
commit cfe94b421b
2 changed files with 27 additions and 0 deletions

View file

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

View file

@ -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