]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/moves-based-on-type-capture-clause.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / 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 }