mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
8 lines
173 B
Rust
8 lines
173 B
Rust
#![allow(incomplete_features)]
|
|
#![feature(move_expr)]
|
|
|
|
fn main() {
|
|
let _ = move(String::from("nope"));
|
|
//~^ ERROR `move(expr)` is only supported in plain closures
|
|
}
|