Benign cargo Download

cell_par_iter.rs

SHA-2564f076862d9c66ed42a642a5be97116ca5982608ab76816a8f8305182bf463e9e
Malecule∅

Evidence

English function-word token "the" lines 1–8
1/*! ```compile_fail,E0277
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
8fn m …
Contains a 1023 or 1024 iteration-count literal lines 8–15
8:8… () {
9 let c = Cell::new(42_i32);
10 (0_i32..1024).into_par_iter()
11 .map(|_| c.get()) //~ ERROR E0277
12 .min();
13}
14
15``` */

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.