1 // Test that a nominal type (like `Foo<'a>`) outlives `'b` if its
2 // arguments (like `'a`) outlive `'b`.
4 // Rule OutlivesNominalType from RFC 1214.
9 mod variant_struct_type {
16 impl<'a, 'b> Trait<'a, 'b> for usize {
17 type Out = &'a Foo<&'b i32>; //~ ERROR reference has a longer lifetime