]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-issue-2657-2.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / borrowck / borrowck-issue-2657-2.rs
1 #![feature(box_syntax)]
2
3 fn main() {
4     let x: Option<Box<_>> = Some(box 1);
5     match x {
6       Some(ref y) => {
7         let _b = *y; //~ ERROR cannot move out
8       }
9       _ => {}
10     }
11 }