rust/tests/run-pass/available-concurrency.rs
2021-10-07 11:52:11 -07:00

6 lines
122 B
Rust

#![feature(available_parallelism)]
fn main() {
assert_eq!(std::thread::available_parallelism().unwrap().get(), 1);
}