summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
blob: 39c8c0def6bff6ff295cc6f9bf8c5b38be5534ff (plain)
1
2
3
4
5
6
7
8
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() {}