Files
rust/tests/ui/move-expr/double-move.rs
T
2026-05-07 22:23:37 +09:00

14 lines
248 B
Rust

#![allow(incomplete_features)]
#![feature(move_expr)]
fn main() {
let x = vec![1, 2, 3];
let _c = || {
let y = move(x);
let z = move(x);
//~^ ERROR use of moved value: `x`
drop(y);
drop(z);
};
}