blob: b4c4c013cd25112c28567d3a7488733c0a32de58 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// check-pass
#![feature(type_alias_impl_trait)]
type Ty<'a, A> = impl Sized + 'a;
fn defining<'a, A>() -> Ty<'a, A> {}
fn assert_static<T: 'static>() {}
fn test<'a, A>() where Ty<'a, A>: 'static, { assert_static::<Ty<'a, A>>() }
fn main() {}
|