From 5e6c6bdafdb4331b7f82db86b6dc772b31b0ae99 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Fri, 21 Apr 2023 09:10:55 +0200 Subject: [PATCH] chore: fix compiler output changes in rustc 1.69 (#5643) --- tests-build/tests/fail/macros_type_mismatch.stderr | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests-build/tests/fail/macros_type_mismatch.stderr b/tests-build/tests/fail/macros_type_mismatch.stderr index a2cd125ced2..d900ac2330c 100644 --- a/tests-build/tests/fail/macros_type_mismatch.stderr +++ b/tests-build/tests/fail/macros_type_mismatch.stderr @@ -1,33 +1,33 @@ error[E0308]: mismatched types - --> $DIR/macros_type_mismatch.rs:5:5 + --> tests/fail/macros_type_mismatch.rs:5:5 | 4 | async fn missing_semicolon_or_return_type() { | - help: a return type might be missing here: `-> _` 5 | Ok(()) - | ^^^^^^ expected `()`, found enum `Result` + | ^^^^^^ expected `()`, found `Result<(), _>` | = note: expected unit type `()` found enum `Result<(), _>` error[E0308]: mismatched types - --> $DIR/macros_type_mismatch.rs:10:5 + --> tests/fail/macros_type_mismatch.rs:10:5 | 9 | async fn missing_return_type() { | - help: a return type might be missing here: `-> _` 10 | return Ok(()); - | ^^^^^^^^^^^^^^ expected `()`, found enum `Result` + | ^^^^^^^^^^^^^^ expected `()`, found `Result<(), _>` | = note: expected unit type `()` found enum `Result<(), _>` error[E0308]: mismatched types - --> $DIR/macros_type_mismatch.rs:23:5 + --> tests/fail/macros_type_mismatch.rs:23:5 | 14 | async fn extra_semicolon() -> Result<(), ()> { | -------------- expected `Result<(), ()>` because of return type ... 23 | Ok(()); - | ^^^^^^^ expected enum `Result`, found `()` + | ^^^^^^^ expected `Result<(), ()>`, found `()` | = note: expected enum `Result<(), ()>` found unit type `()` @@ -38,7 +38,7 @@ help: try adding an expression at the end of the block | error[E0308]: mismatched types - --> $DIR/macros_type_mismatch.rs:32:5 + --> tests/fail/macros_type_mismatch.rs:32:5 | 30 | async fn issue_4635() { | - help: try adding a return type: `-> i32`