Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-50461-used-mut-from-moves.rs
blob: 59103afa226178ea37c1464cfafc8989b575aed4 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
deny
(
unused_mut
)]
#![
allow
(
dead_code
)]
struct
Foo
{
pub
value
:
i32
}
fn
use_foo_mut
(
mut
foo
:
Foo
)
{
foo
=
foo
;
println
!(
"{}"
,
foo
.
value
);
}
fn
main
()
{
use_foo_mut
(
Foo
{
value
:
413
});
}