diff options
Diffstat (limited to 'vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs')
-rw-r--r-- | vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs b/vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs index de43fca57..54fd50de1 100644 --- a/vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs +++ b/vendor/rustc-rayon/src/compile_fail/cannot_zip_filtered_data.rs @@ -5,12 +5,10 @@ use rayon::prelude::*; // zip requires data of exact size, but filter yields only bounded // size, so check that we cannot apply it. -fn main() { - let mut a: Vec<usize> = (0..1024).rev().collect(); - let b: Vec<usize> = (0..1024).collect(); +let mut a: Vec<usize> = (0..1024).rev().collect(); +let b: Vec<usize> = (0..1024).collect(); - a.par_iter() - .zip(b.par_iter().filter(|&&x| x > 3)); //~ ERROR -} +a.par_iter() + .zip(b.par_iter().filter(|&&x| x > 3)); //~ ERROR ``` */ |