Rollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebank
Fix ICE in #63135 Closes #63135. r?@estebank
This commit is contained in:
commit
3396550420
3 changed files with 56 additions and 1 deletions
3
src/test/ui/parser/issue-63135.rs
Normal file
3
src/test/ui/parser/issue-63135.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// error-pattern: aborting due to 6 previous errors
|
||||
|
||||
fn i(n{...,f #
|
||||
44
src/test/ui/parser/issue-63135.stderr
Normal file
44
src/test/ui/parser/issue-63135.stderr
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
error: this file contains an un-closed delimiter
|
||||
--> $DIR/issue-63135.rs:3:16
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| - - ^
|
||||
| | |
|
||||
| | un-closed delimiter
|
||||
| un-closed delimiter
|
||||
|
||||
error: expected field pattern, found `...`
|
||||
--> $DIR/issue-63135.rs:3:8
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| ^^^ help: to omit remaining fields, use one fewer `.`: `..`
|
||||
|
||||
error: expected `}`, found `,`
|
||||
--> $DIR/issue-63135.rs:3:11
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| ---^
|
||||
| | |
|
||||
| | expected `}`
|
||||
| `..` must be at the end and cannot have a trailing comma
|
||||
|
||||
error: expected `[`, found `}`
|
||||
--> $DIR/issue-63135.rs:3:15
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| ^ expected `[`
|
||||
|
||||
error: expected `:`, found `)`
|
||||
--> $DIR/issue-63135.rs:3:15
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| ^ expected `:`
|
||||
|
||||
error: expected one of `->`, `where`, or `{`, found `<eof>`
|
||||
--> $DIR/issue-63135.rs:3:15
|
||||
|
|
||||
LL | fn i(n{...,f #
|
||||
| ^ expected one of `->`, `where`, or `{` here
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue