]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/proper-span-for-type-error.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / proper-span-for-type-error.rs
1 // edition:2021
2 // run-rustfix
3 #![allow(dead_code)]
4
5 async fn a() {}
6
7 async fn foo() -> Result<(), i32> {
8     a().await //~ ERROR mismatched types
9 }
10
11 fn main() {}