Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
unused
/
unused-mut-warning-captured-var.rs
blob: 8726c4f173fa3a31f7e1d3a850c855289b574166 [
file
] [
log
] [
blame
]
// run-rustfix
#![
forbid
(
unused_mut
)]
fn
main
()
{
let
mut
x
=
1
;
//~^ ERROR: variable does not need to be mutable
move
||
{
println
!(
"{}"
,
x
);
};
}