]> git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/borrowck-issue-2657-2.fixed
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / borrowck / borrowck-issue-2657-2.fixed
1 // run-rustfix
2 fn 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 }