]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/unused-mut-issue-50343.fixed
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / unused-mut-issue-50343.fixed
1 // run-rustfix
2
3 #![deny(unused_mut)]
4 #![allow(unused_variables)] // for rustfix
5
6 fn main() {
7     vec![(42, 22)].iter().map(|(x, _y)| ()).count();
8     //~^ ERROR: variable does not need to be mutable
9 }