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