mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
14 lines
198 B
Rust
14 lines
198 B
Rust
//@ check-pass
|
|
#![allow(incomplete_features)]
|
|
#![feature(move_expr)]
|
|
|
|
fn main() {
|
|
let s = vec![1, 2, 3];
|
|
let c = || {
|
|
let t = &move(s);
|
|
println!("{t:?}");
|
|
};
|
|
|
|
c();
|
|
}
|