Skip to content

Commit

Permalink
Update test output.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Mar 2, 2022
1 parent 85cc471 commit b32cabf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/async-await/proper-span-for-type-error.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
7 changes: 4 additions & 3 deletions src/test/ui/async-await/proper-span-for-type-error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b32cabf

Please sign in to comment.