]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/await-unsize.rs
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[rust.git] / src / test / 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() {}