#![feature(type_alias_impl_trait)] type Opaque2 = impl Sized; type Opaque<'a, T> = Opaque2; fn defining<'a, T>(x: &'a i32) -> Opaque { x } //~^ ERROR: hidden type for `Opaque2` captures lifetime that does not appear in bounds fn main() {}