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