blob: 74b1fba5dfea2eb2fe855e7afbaeb7ef936e2444 [file] [edit]
fn main() {
let mut ref x = 10; //~ ERROR [E0658]
x = &11;
let ref mut y = 12;
*y = 13;
let mut ref mut z = 14; //~ ERROR [E0658]
z = &mut 15;
#[cfg(false)]
let mut ref x = 10; //~ ERROR [E0658]
#[cfg(false)]
let mut ref mut y = 10; //~ ERROR [E0658]
struct Foo { x: i32 }
let Foo { mut ref x } = Foo { x: 10 }; //~ ERROR [E0658]
}