1 #![feature(type_alias_impl_trait)]
3 mod test_type_param_static {
4 type Ty<A> = impl Sized + 'static;
5 //~^ ERROR: the parameter type `A` may not live long enough
6 fn defining<A: 'static>(s: A) -> Ty<A> { s }
7 fn assert_static<A: 'static>() {}
8 fn test<A>() where Ty<A>: 'static { assert_static::<A>() }