Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
reborrow
/
option_mut.rs
blob: 04d8301772de962fe8de9b8a6e21f70e59d26647 [
file
] [
log
] [
blame
] [
edit
]
fn
method
(
a
:
Option
<&
mut
()>)
{}
fn
main
()
{
let
a
=
Some
(&
mut
());
let
_
=
method
(
a
);
let
_
=
method
(
a
);
//~ERROR use of moved value: `a`
}