]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-issue-2657-2.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.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 }