Sign in
◑
Theme
rust
/
rust
/
7ce91c53c4c7fa80b60b49e030b0298d4e575d23
/
.
/
tests
/
ui
/
move-expr
/
use-after-move.rs
blob: 69f2bf35125dfebf2c767a1f913f5dc7f6d75915 [
file
]
#![
allow
(
incomplete_features
)]
#![
feature
(
move_expr
)]
fn
main
()
{
let
x
=
vec
![
1
,
2
,
3
];
let
_c
=
||
{
//~^ ERROR borrow of moved value: `x`
let
y
=
move
(
x
);
println
!(
"{x:?}"
);
drop
(
y
);
};
}