Update test output.
This commit is contained in:
parent
85cc4710ef
commit
b32cabf458
@ -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() {}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user