blob: 7c827510be8aeef6856d56a805a47d06339dc86f [file] [log] [blame]
struct Ref<'a, 'b> {
a: &'a u32,
b: &'b u32,
}
fn foo(mut x: Ref, y: &u32) {
x.b = y; //~ ERROR lifetime mismatch
}
fn main() {}