Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
issues
/
issue-11958.rs
blob: 8fe8a8c6061891497988d053871961a0a08950c8 [
file
] [
log
] [
blame
]
// run-pass
#![
forbid
(
warnings
)]
// 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
;
});
}