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