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