rust/src/test/ui/async-await/await-unsize.rs
2019-08-20 03:08:42 +02:00

15 lines
216 B
Rust

// Regression test for #62312
// check-pass
// edition:2018
async fn make_boxed_object() -> Box<dyn Send> {
Box::new(()) as _
}
async fn await_object() {
let _ = make_boxed_object().await;
}
fn main() {}