]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | /*! ```compile_fail,E0277 |
2c00a5a8 XL |
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 | ||
487cf647 FG |
8 | let mut a: Vec<usize> = (0..1024).rev().collect(); |
9 | let b: Vec<usize> = (0..1024).collect(); | |
2c00a5a8 | 10 | |
487cf647 FG |
11 | a.par_iter() |
12 | .zip(b.par_iter().filter(|&&x| x > 3)); //~ ERROR | |
416331ca XL |
13 | |
14 | ``` */ |