mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 02:53:43 +00:00
8 lines
221 B
Rust
8 lines
221 B
Rust
use rustc_thred_pool::ThreadPoolBuilder;
|
|
|
|
#[test]
|
|
#[cfg_attr(any(target_os = "emscripten", target_family = "wasm"), ignore)]
|
|
fn init_zero_threads() {
|
|
ThreadPoolBuilder::new().num_threads(0).build_global().unwrap();
|
|
}
|