1 // Test that a structure which tries to store a pointer to `y` into
2 // `p` (indirectly) fails to compile.
4 #![feature(rustc_attrs)]
7 struct SomeStruct<'a, 'b: 'a> {
19 let closure = SomeStruct {
22 //~^ ERROR `y` does not live long enough [E0597]
31 impl<'a, 'b> SomeStruct<'a, 'b> {