rust/tests/ui/async-await/proper-span-for-type-error....

13 lines
177 B
Rust

//@ edition:2021
//@ run-rustfix
#![allow(dead_code)]
async fn a() {}
async fn foo() -> Result<(), i32> {
a().await;
Ok(()) //~ ERROR mismatched types
}
fn main() {}