rust/tests/ui/binop/binary-op-on-double-ref.fixed
2023-01-11 09:32:08 +00:00

10 lines
222 B
Rust

// 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);
}