blob: 03afec859d272b5e7c3dfc0f0baa178834a29a58 [file] [log] [blame]
//@ check-pass
#![feature(type_alias_impl_trait)]
type Opaque<T> = impl Sized;
fn defining<T>() -> Opaque<T> {}
struct Ss<'a, T>(&'a Opaque<T>);
fn test<'a, T>(_: Ss<'a, T>) {
// test that we have an implied bound `Opaque<T>: 'a` from fn signature
None::<&'a Opaque<T>>;
}
fn main() {}