Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-11958.rs
blob: a7af01e25b4e2899512d0d8cc0a00c91bf8c13d1 [
file
] [
log
] [
blame
]
// run-pass
// We shouldn't need to rebind a moved upvar as mut if it's already
// marked as mut
pub
fn
main
()
{
let
mut
x
=
1
;
let
_thunk
=
Box
::
new
(
move
||
{
x
=
2
;
});
//~^ WARN value assigned to `x` is never read
//~| WARN unused variable: `x`
}