Update test output.

This commit is contained in:
Mara Bos 2022-03-02 19:30:25 +01:00
parent 85cc4710ef
commit b32cabf458
2 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,8 @@
async fn a() {}
async fn foo() -> Result<(), i32> {
Ok(a().await) //~ ERROR mismatched types
a().await;
Ok(()) //~ ERROR mismatched types
}
fn main() {}

View File

@ -6,10 +6,11 @@ LL | a().await
|
= note: expected enum `Result<(), i32>`
found unit type `()`
help: try wrapping the expression in `Ok`
help: try adding an expression at the end of the block
|
LL ~ a().await;
LL ~ Ok(())
|
LL | Ok(a().await)
| +++ +
error: aborting due to previous error