Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
refs/tags/1.58.1
/
.
/
src
/
test
/
ui
/
unique
/
unique-fn-arg-mut.rs
blob: 01510200b11b793d48d717c63cfb008fc9d57775 [
file
] [
log
] [
blame
]
// run-pass
fn
f
(
i
:
&
mut
Box
<
isize
>)
{
*
i
=
Box
::
new
(
200
);
}
pub
fn
main
()
{
let
mut
i
=
Box
::
new
(
100
);
f
(&
mut
i
);
assert_eq
!(*
i
,
200
);
}