| 1 | /*! ```compile_fail,E0277 |
|---|---|
| 2 | |
| 3 | use rayon::prelude::*; |
| 4 | |
| 5 | // zip requires data of exact size, but filter yields only bounded |
| 6 | // size, so check that we cannot apply it. |
| 7 | |
| 8 | let mut a: Vec<usize> = (0..1024).rev().collect(); |
| 9 | let b: Vec<usize> = (0..1024).collect(); |
| 10 | |
| 11 | a.par_iter() |
| 12 | .zip(b.par_iter().filter(|&&x| x > 3)); //~ ERROR |
| 13 | |
| 14 | ``` */ |
| 15 |
