fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
189 B12 linesraw
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}