rust/tests/ui/impl-trait/precise-capturing/unexpected-token.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
299 B
Rust
Raw Normal View History

// 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.
2024-06-05 15:18:52 -05:00
fn hello() -> impl Sized + use<'a {}> {}
//~^ ERROR expected one of `,` or `>`, found `{`
fn main() {}