Sign in
rust
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
move-expr
/
nested-move-expr.rs
blob: cf3364c50aad7ce9d983676c97118e8a2eb9d7a2 [
file
] [
edit
]
//@ 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
());
}