]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-issue-2657-2.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-issue-2657-2.rs
1 fn main() {
2
3 let x: Option<Box<_>> = Some(Box::new(1));
4
5 match x {
6 Some(ref y) => {
7 let _b = *y; //~ ERROR cannot move out
8 }
9 _ => {}
10 }
11 }