]> git.proxmox.com Git - rustc.git/blame - vendor/rayon/src/compile_fail/cannot_zip_filtered_data.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / vendor / rayon / src / compile_fail / cannot_zip_filtered_data.rs
CommitLineData
416331ca 1/*! ```compile_fail,E0277
2c00a5a8
XL
2
3use 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
8let mut a: Vec<usize> = (0..1024).rev().collect();
9let b: Vec<usize> = (0..1024).collect();
2c00a5a8 10
487cf647
FG
11a.par_iter()
12 .zip(b.par_iter().filter(|&&x| x > 3)); //~ ERROR
416331ca
XL
13
14``` */