1 // Test various uses of structs with distint variances to make sure
2 // they permit lifetimes to be approximated as expected.
5 // build-pass (FIXME(62277): could be check-pass?)
7 struct SomeStruct<T>(fn(T));
9 fn bar<'min,'max>(v: SomeStruct<&'min ()>)
10 -> SomeStruct<&'max ()>