Skip to content

Commit

Permalink
fix: accept tests on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
evertedsphere committed Apr 13, 2023
1 parent a3dfc64 commit cf575d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests-build/tests/fail/macros_type_mismatch.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error[E0308]: mismatched types
--> tests/fail/macros_type_mismatch.rs:5:5
--> $DIR/macros_type_mismatch.rs:5:5
|
5 | Ok(())
| ^^^^^^- help: consider using a semicolon here: `;`
| |
| expected `()`, found `Result<(), _>`
| expected `()`, found enum `Result`
|
= note: expected unit type `()`
found enum `Result<(), _>`

error[E0308]: mismatched types
--> tests/fail/macros_type_mismatch.rs:8:1
--> $DIR/macros_type_mismatch.rs:8:1
|
8 | #[tokio::main]
| ^^^^^^^^^^^^^^ expected `()`, found `Result<(), _>`
| ^^^^^^^^^^^^^^ expected `()`, found enum `Result`
9 | async fn missing_return_type() {
| - help: a return type might be missing here: `-> _`
|
Expand All @@ -22,10 +22,10 @@ error[E0308]: mismatched types
= note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
--> tests/fail/macros_type_mismatch.rs:14:31
--> $DIR/macros_type_mismatch.rs:14:31
|
14 | async fn extra_semicolon() -> Result<(), ()> {
| --------------- ^^^^^^^^^^^^^^ expected `Result<(), ()>`, found `()`
| --------------- ^^^^^^^^^^^^^^ expected enum `Result`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
...
Expand All @@ -36,7 +36,7 @@ error[E0308]: mismatched types
found unit type `()`

error[E0308]: mismatched types
--> tests/fail/macros_type_mismatch.rs:29:1
--> $DIR/macros_type_mismatch.rs:29:1
|
29 | #[tokio::main]
| ^^^^^^^^^^^^^^ expected `()`, found integer
Expand Down

0 comments on commit cf575d4

Please sign in to comment.