rust/tests/run-pass/available-concurrency.rs

6 lines
122 B
Rust
Raw Normal View History

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