summaryrefslogtreecommitdiffstats
path: root/src/test/ui/threads-sendsync/spawning-with-debug.rs
blob: 9d3487ffb29566685bb24f06c43eeac9c9d6db57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
#![allow(unused_must_use)]
#![allow(unused_mut)]
// ignore-windows
// exec-env:RUST_LOG=debug
// ignore-emscripten no threads support

// regression test for issue #10405, make sure we don't call println! too soon.

use std::thread::Builder;

pub fn main() {
    let mut t = Builder::new();
    t.spawn(move || ());
}