]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-capture-clause.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / moves / moves-based-on-type-capture-clause.rs
1 // run-pass
2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4
5 use std::thread;
6
7 pub fn main() {
8     let x = "Hello world!".to_string();
9     thread::spawn(move|| {
10         println!("{}", x);
11     }).join();
12 }