about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/spawning-with-debug.rs
blob: 3b7107e2dbfa67a9fa2d83c9ff5be59c539b258c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ run-pass
#![allow(unused_must_use)]
#![allow(unused_mut)]
//@ exec-env:RUST_LOG=debug
//@ needs-threads

// 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 || ());
}