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

12 lines
165 B
Rust

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