summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/binary-op-on-double-ref.fixed
blob: 586d2568c306fe4877ba9c4c517d055a5e8b52c3 (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 calculate the remainder of `&&{integer}` divided by `{integer}`
    });
    println!("{:?}", vr);
}