mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
298 B
Rust
14 lines
298 B
Rust
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]
|
|
}
|