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.
8 #![feature(rustc_attrs)]
11 mod variant_struct_region {
16 f: &'a Foo<'b> //~ ERROR reference has a longer lifetime