2024-03-23 21:04:45 -04:00
|
|
|
//@ check-pass
|
2024-03-26 01:23:26 -04:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
#![feature(mut_ref)]
|
2017-07-26 18:59:07 +03:00
|
|
|
fn main() {
|
2024-03-23 21:04:45 -04:00
|
|
|
let mut ref x = 10;
|
|
|
|
|
x = &11;
|
|
|
|
|
let ref mut y = 12;
|
|
|
|
|
*y = 13;
|
|
|
|
|
let mut ref mut z = 14;
|
|
|
|
|
z = &mut 15;
|
2017-07-26 18:59:07 +03:00
|
|
|
}
|