rayon/compile_fail/rc_par_iter.rs
1/*! ```compile_fail,E0599
2
3// Check that we can't use the par-iter API to access contents of an
4// `Rc`.
5
6use rayon::prelude::*;
7use std::rc::Rc;
8
9fn main() {
10 let x = vec![Rc::new(22), Rc::new(23)];
11 let mut y = vec![];
12 x.into_par_iter() //~ ERROR no method named `into_par_iter`
13 .map(|rc| *rc)
14 .collect_into_vec(&mut y);
15}
16
17``` */