Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 393 Bytes
// Test that a nominal type (like `Foo<'a>`) outlives `'b` if its
// arguments (like `'a`) outlive `'b`.
// Rule OutlivesNominalType from RFC 1214.
// build-pass (FIXME(62277): could be check-pass?)
mod variant_struct_type {
struct Foo<T> {
x: fn(T)
enum Bar<'a,'b> {
V(&'a Foo<&'b i32>)
fn main() { }
You can’t perform that action at this time.