blob: 1a5daa13458c6b616d10ebcdc4b1a76faa6b49fd [file] [log] [blame]
#![feature(type_alias_impl_trait)]
mod test_type_param_static {
type Ty<A> = impl Sized + 'static;
//~^ ERROR: the parameter type `A` may not live long enough
fn defining<A: 'static>(s: A) -> Ty<A> { s }
fn assert_static<A: 'static>() {}
fn test<A>() where Ty<A>: 'static { assert_static::<A>() }
//~^ ERROR: the parameter type `A` may not live long enough
}
fn main() {}