// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
fn match_on_local() {
let mut foo = Some(box 5i);
match foo {
fn match_on_upvar() {
let mut foo = Some(box 8i);
- (proc() {
+ let f = move|:| {
match foo {
None => {},
Some(x) => {
}
}
println!("'{}'", foo.unwrap());
- })();
+ };
+ f();
}
fn main() {