blob: b2f68352f896c78d1ebd4a8523f73961df690123 [file] [log] [blame]
use std::thread;
fn main() {
let x = "Hello world!".to_string();
thread::spawn(move|| {
println!("{}", x);
});
println!("{}", x); //~ ERROR borrow of moved value
}