mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00
10 lines
260 B
Rust
10 lines
260 B
Rust
#![allow(unused_crate_dependencies)]
|
|
|
|
use rustc_thread_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();
|
|
}
|