trait Trait {} impl Trait for () {} fn foo<'a: 'a>() { let _x: impl Trait = (); //~^ `impl Trait` is not allowed in the type of variable bindings } fn main() {}