blob: 147b70d0cfbf4a360e2bd22b1044fbce3eb7e200 [file] [log] [blame] [edit]
//@ run-pass
struct Foo<'a> {
x: &'a i32
}
impl<'a> Foo<'a> {
fn method(&mut self, _: &i32) {
}
}
fn main() {
let a = &mut Foo { x: &22 };
Foo::method(a, a.x);
}