Files
rust/tests/ui/move-expr/async-closures.rs
T
2026-05-11 16:21:46 +09:00

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
};
}