mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 04:27:33 +00:00
10 lines
333 B
Rust
10 lines
333 B
Rust
![]() |
// 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() {}
|