]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-error-span.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / async-error-span.rs
1 // edition:2018
2
3 // Regression test for issue #62382.
4
5 use std::future::Future;
6
7 fn get_future() -> impl Future<Output = ()> {
8 //~^ ERROR `()` is not a future
9     panic!()
10 }
11
12 async fn foo() {
13     let a; //~ ERROR type inside `async fn` body must be known in this context
14     get_future().await;
15 }
16
17 fn main() {}