1 2 3 4 5 6 7 8 9 10 11
struct Ref<'a, 'b> { a: &'a u32, b: &'b u32, } fn foo(mut x: Ref, y: &u32) { x.b = y; //~^ ERROR lifetime may not live long enough } fn main() {}