rust/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
2024-06-17 22:35:25 -04:00

9 lines
299 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 Sized + use<'a {}> {}
//~^ ERROR expected one of `,` or `>`, found `{`
fn main() {}