]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unused/unused-mut-warning-captured-var.fixed
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / unused / unused-mut-warning-captured-var.fixed
1 // run-rustfix
2
3 #![forbid(unused_mut)]
4
5 fn main() {
6     let x = 1;
7     //~^ ERROR: variable does not need to be mutable
8     (move|| { println!("{}", x); })();
9 }