blob: 788c631cf5fdfae0d74667db9506577388d8254b [file] [edit]
//@ check-pass
#![allow(incomplete_features)]
#![feature(move_expr)]
fn main() {
let s = String::from("hello");
let c = || {
let t = move(s);
println!("{}", t.len());
};
c();
let a = String::from("hello");
let b = String::from("world");
let c = || {
let x = move(a);
let y = move(b);
println!("{} {}", x, y);
};
c();
}