mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
12 lines
200 B
Rust
12 lines
200 B
Rust
//@ check-pass
|
|
#![allow(incomplete_features)]
|
|
#![feature(mut_ref)]
|
|
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;
|
|
}
|