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