mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
149 B
Rust
11 lines
149 B
Rust
//@ check-pass
|
|
|
|
fn main() {
|
|
let mut ref x = 10;
|
|
x = &11;
|
|
let ref mut y = 12;
|
|
*y = 13;
|
|
let mut ref mut z = 14;
|
|
z = &mut 15;
|
|
}
|