1
Fork 0

Don't fatal when calling expect_one_of when recovering arg in parse_seq

This commit is contained in:
Michael Goulet 2024-04-19 13:12:12 -04:00
parent c5de414865
commit 2ef15523c1
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,9 @@
// We used to fatal error without any useful diagnostic when we had an unexpected
// token due to a strange interaction between the sequence parsing code and the
// param/lifetime parsing code.
fn hello() -> impl use<'a {}> Sized {}
//~^ ERROR expected one of `,` or `>`, found `{`
//~| ERROR expected item, found `>`
fn main() {}