fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2fn main() { 3 4 let x: Option<Box<_>> = Some(Box::new(1)); 5 6 match x { 7 Some(ref y) => { 8 let _b = y; //~ ERROR cannot move out 9 } 10 _ => {} 11 } 12}
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
1// run-rustfix 2fn main() { 3 4 let x: Option<Box<_>> = Some(Box::new(1)); 5 6 match x { 7 Some(ref y) => { 8 let _b = y; //~ ERROR cannot move out 9 } 10 _ => {} 11 } 12}