blob: 752ae35d8a9aee2fa2a94ba12e0e314329e5a0d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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]
}
|