mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
13 lines
223 B
Rust
13 lines
223 B
Rust
//@ check-pass
|
|
#![allow(incomplete_features)]
|
|
#![feature(move_expr)]
|
|
|
|
fn main() {
|
|
let v = "Hello, Ferris".to_string();
|
|
let r = || {
|
|
|| (move(move(v.clone()))).len()
|
|
};
|
|
|
|
assert_eq!(r()(), v.len());
|
|
}
|