]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/proper-span-for-type-error.fixed
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / async-await / proper-span-for-type-error.fixed
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;
9     Ok(()) //~ ERROR mismatched types
10 }
11
12 fn main() {}