From 38747549bafde28cc27475fb3f4e6e0b00b89801 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Tue, 16 Nov 2021 10:15:24 -0800 Subject: [PATCH] test-build: bless slightly different compiler output --- tests-build/tests/fail/macros_type_mismatch.stderr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests-build/tests/fail/macros_type_mismatch.stderr b/tests-build/tests/fail/macros_type_mismatch.stderr index c16013222aa..a8fa99bc63b 100644 --- a/tests-build/tests/fail/macros_type_mismatch.stderr +++ b/tests-build/tests/fail/macros_type_mismatch.stderr @@ -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<(), _>` @@ -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<(), _>`