]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-issue-2657-2.rs
Rollup merge of #102500 - compiler-errors:parse-sess-cleanup, r=cjgillot
[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 }