mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
16 lines
330 B
Rust
16 lines
330 B
Rust
// 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 || ());
|
|
}
|