]> git.proxmox.com Git - rustc.git/blame - vendor/rustc-rayon/src/compile_fail/cell_par_iter.rs
bump version to 1.74.1+dfsg1-1~bpo12+pve1
[rustc.git] / vendor / rustc-rayon / src / compile_fail / cell_par_iter.rs
CommitLineData
532ac7d7 1/*! ```compile_fail,E0277
2c00a5a8
XL
2
3// Check that we can't use the par-iter API to access contents of a `Cell`.
4
5use rayon::prelude::*;
6use std::cell::Cell;
7
353b0b11
FG
8let c = Cell::new(42_i32);
9(0_i32..1024).into_par_iter()
10 .map(|_| c.get()) //~ ERROR E0277
11 .min();
532ac7d7
XL
12
13``` */