summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/issue-102598.rs
blob: 93808f18b99715ff16799543587731035d65fb96 (plain)
1
2
3
4
5
6
7
8
fn foo<'a>(_: impl 'a Sized) {}
//~^ ERROR: expected `+` between lifetime and Sized
//~| ERROR: expected one of `:`, `@`, or `|`, found `)`
//~| ERROR: expected one of `)`, `+`, or `,`, found `Sized`
//~| ERROR: at least one trait must be specified

fn main(){
}