summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/unused-mut-issue-50343.fixed
blob: 5632de1cd34ded4224ca7be61505a11ee3aad669 (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

#![deny(unused_mut)]
#![allow(unused_variables)] // for rustfix

fn main() {
    vec![(42, 22)].iter().map(|(x, _y)| ()).count();
    //~^ ERROR: variable does not need to be mutable
}