]> git.proxmox.com Git - rustc.git/blame - src/test/ui/moves/moves-based-on-type-capture-clause-bad.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / moves / moves-based-on-type-capture-clause-bad.rs
CommitLineData
85aaf69f 1use std::thread;
970d7e83 2
223e47cc 3fn main() {
1a4d82fc 4 let x = "Hello world!".to_string();
85aaf69f 5 thread::spawn(move|| {
1a4d82fc
JJ
6 println!("{}", x);
7 });
48663c56 8 println!("{}", x); //~ ERROR borrow of moved value
223e47cc 9}