]>
git.proxmox.com Git - rustc.git/blob - vendor/rustc-rayon-core/tests/double_init_fail.rs
1 use rayon_core
::ThreadPoolBuilder
;
5 fn double_init_fail() {
6 let result1
= ThreadPoolBuilder
::new().build_global();
7 assert_eq
!(result1
.unwrap(), ());
8 let err
= ThreadPoolBuilder
::new().build_global().unwrap_err();
9 assert
!(err
.description() == "The global thread pool has already been initialized.");