Files
rust/compiler/rustc_thread_pool/tests/init_zero_threads.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
260 B
Rust
Raw Permalink Normal View History

2025-06-11 12:32:09 -07:00
#![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();
}