]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/spawning-with-debug.rs
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
[rust.git] / src / test / ui / threads-sendsync / spawning-with-debug.rs
1 // run-pass
2 #![allow(unused_must_use)]
3 #![allow(unused_mut)]
4 // ignore-windows
5 // exec-env:RUST_LOG=debug
6 // ignore-emscripten no threads support
7
8 // regression test for issue #10405, make sure we don't call println! too soon.
9
10 use std::thread::Builder;
11
12 pub fn main() {
13     let mut t = Builder::new();
14     t.spawn(move || ());
15 }