struct X { x: (), } impl X : Drop { fn finalize() { error!("destructor runs"); } } struct Y { y: Option } fn main() { let x = Y { y: Some(X { x: () }) }; match x.y { Some(move _z) => { }, //~ ERROR cannot bind by-move when matching an lvalue None => fail } }