Skip to content

Commit

Permalink
test-build: bless slightly different compiler output
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Nov 16, 2021
1 parent 8303b5a commit 3874754
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests-build/tests/fail/macros_type_mismatch.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error[E0308]: mismatched types
--> $DIR/macros_type_mismatch.rs:5:7
--> $DIR/macros_type_mismatch.rs:5:5
|
5 | Ok(())
| ^^^^ expected `()`, found enum `Result`
| ^^^^^^ expected `()`, found enum `Result`
|
= note: expected unit type `()`
found enum `Result<(), _>`
Expand All @@ -16,12 +16,12 @@ help: try adding a return type
| ++++++++++++++++

error[E0308]: mismatched types
--> $DIR/macros_type_mismatch.rs:10:18
--> $DIR/macros_type_mismatch.rs:10:5
|
9 | async fn missing_return_type() {
| - help: try adding a return type: `-> Result<(), _>`
10 | return Ok(());
| ^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^ expected `()`, found enum `Result`
|
= note: expected unit type `()`
found enum `Result<(), _>`
Expand Down

0 comments on commit 3874754

Please sign in to comment.