Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
move-expr
/
move-fnonce.rs
blob: a9d44cad1950297c436a9a58f1e8b3fffed763e8 [
file
]
#![
allow
(
incomplete_features
)]
#![
feature
(
move_expr
)]
fn
main
()
{
let
s
=
vec
![
1
,
2
,
3
];
let
mut
c
=
||
{
let
t
=
move
(
s
);
println
!(
"{t:?}"
);
};
c
();
c
();
//~^ ERROR use of moved value: `c`
}