#![feature(box_syntax)] fn main() { let x: Option> = Some(box 1); match x { Some(ref y) => { let _b = *y; //~ ERROR cannot move out } _ => {} } }