//~^ HELP use a `ref` binding as shown
//~| SUGGESTION let ref y = x;
x; //~ ERROR use of moved value
+ //~^ HELP run `rustc --explain E0382` to see a detailed explanation
let x = vec![1];
let mut y = x;
//~^ HELP use a `ref` binding as shown
//~| SUGGESTION let ref mut y = x;
x; //~ ERROR use of moved value
+ //~^ HELP run `rustc --explain E0382` to see a detailed explanation
let x = (Some(vec![1]), ());
_ => {},
}
x; //~ ERROR use of partially moved value
+ //~^ HELP run `rustc --explain E0382` to see a detailed explanation
}