blob: 32dbd808861f81d2d661e087f04d34a31a06a300 [file]
//@ edition: 2021
#![allow(incomplete_features)]
#![feature(move_expr)]
use std::sync::Arc;
fn main() {
let c = Arc::new(String::new());
let _future = async {
let f = async {
drop(move(c.clone()));
};
f.await;
drop(c);
};
println!("{c}"); //~ ERROR the type `Arc` does not implement `Copy`
}