Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
reborrow
/
pin_mut.rs
blob: 959cb14f8c9ad876a230c6e257c549f7640cdb24 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
pin
::
Pin
;
fn
method
(
a
:
Pin
<&
mut
()>)
{}
fn
main
()
{
let
a
=
&
mut
();
let
a
=
Pin
::
new
(
a
);
let
_
=
method
(
a
);
let
_
=
method
(
a
);
//~ERROR use of moved value: `a`
}