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