fork/rust

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

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

master
161 B9 linesraw
1// run-rustfix
2
3#![forbid(unused_mut)]
4
5fn main() {
6    let x = 1;
7    //~^ ERROR: variable does not need to be mutable
8    (move|| { println!("{}", x); })();
9}