fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
201 B9 linesraw
1// run-rustfix
2
3#![deny(unused_mut)]
4#![allow(unused_variables)] // for rustfix
5
6fn main() {
7    vec![(42, 22)].iter().map(|(x, _y)| ()).count();
8    //~^ ERROR: variable does not need to be mutable
9}