]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/await-unsize.rs
Rollup merge of #105641 - Amanieu:btree_cursor, r=m-ou-se
[rust.git] / tests / ui / async-await / await-unsize.rs
1 // Regression test for #62312
2
3 // check-pass
4 // edition:2018
5
6 async fn make_boxed_object() -> Box<dyn Send> {
7     Box::new(()) as _
8 }
9
10 async fn await_object() {
11     let _ = make_boxed_object().await;
12 }
13
14 fn main() {}