blob: 2616c560cbefb6c320808d9086976a0b65ac570e (
plain)
1
2
3
4
5
6
7
8
9
|
// run-rustfix
fn main() {
let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
let vr = v.iter().filter(|x| {
x % 2 == 0
//~^ ERROR cannot mod `&&{integer}` by `{integer}`
});
println!("{:?}", vr);
}
|