about summary refs log tree commit diff
path: root/compiler/rustc_thread_pool/tests/init_zero_threads.rs
blob: 261493fcb7b7a8292283a648c55c0a0fae4f17f6 (plain)
1
2
3
4
5
6
7
8
9
#![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();
}