diff options
Diffstat (limited to 'vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs')
-rw-r--r-- | vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs b/vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs index feaedb38f..aca63e7ac 100644 --- a/vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs +++ b/vendor/rustc-rayon/src/compile_fail/rc_par_iter.rs @@ -6,12 +6,10 @@ use rayon::prelude::*; use std::rc::Rc; -fn main() { - let x = vec![Rc::new(22), Rc::new(23)]; - let mut y = vec![]; - x.into_par_iter() //~ ERROR no method named `into_par_iter` - .map(|rc| *rc) - .collect_into_vec(&mut y); -} +let x = vec![Rc::new(22), Rc::new(23)]; +let mut y = vec![]; +x.into_par_iter() //~ ERROR no method named `into_par_iter` + .map(|rc| *rc) + .collect_into_vec(&mut y); ``` */ |