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