diff options
Diffstat (limited to 'src/compile_fail/cell_par_iter.rs')
-rw-r--r-- | src/compile_fail/cell_par_iter.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/compile_fail/cell_par_iter.rs b/src/compile_fail/cell_par_iter.rs index 4af04b1..98a1cf9 100644 --- a/src/compile_fail/cell_par_iter.rs +++ b/src/compile_fail/cell_par_iter.rs @@ -5,11 +5,9 @@ use rayon::prelude::*; use std::cell::Cell; -fn main() { - let c = Cell::new(42_i32); - (0_i32..1024).into_par_iter() - .map(|_| c.get()) //~ ERROR E0277 - .min(); -} +let c = Cell::new(42_i32); +(0_i32..1024).into_par_iter() + .map(|_| c.get()) //~ ERROR E0277 + .min(); ``` */ |