]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/await-unsize.rs
Rollup merge of #61926 - scottmcm:vec-vecdeque, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / await-unsize.rs
1 // Regression test for #62312
2
3 // check-pass
4 // edition:2018
5
6 #![feature(async_await)]
7
8 async fn make_boxed_object() -> Box<dyn Send> {
9     Box::new(()) as _
10 }
11
12 async fn await_object() {
13     let _ = make_boxed_object().await;
14 }
15
16 fn main() {}