summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-81839.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-81839.stderr')
-rw-r--r--tests/ui/suggestions/issue-81839.stderr15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/ui/suggestions/issue-81839.stderr b/tests/ui/suggestions/issue-81839.stderr
index 6d0a0c7b3..238ee637c 100644
--- a/tests/ui/suggestions/issue-81839.stderr
+++ b/tests/ui/suggestions/issue-81839.stderr
@@ -4,15 +4,22 @@ error[E0308]: `match` arms have incompatible types
LL | / match num {
LL | | 1 => {
LL | | cx.answer_str("hi");
- | | --------------------
- | | | |
- | | | help: consider removing this semicolon
- | | this is found to be of type `()`
+ | | -------------------- this is found to be of type `()`
LL | | }
LL | | _ => cx.answer_str("hi"),
| | ^^^^^^^^^^^^^^^^^^^ expected `()`, found future
LL | | }
| |_____- `match` arms have incompatible types
+ |
+help: consider removing this semicolon
+ |
+LL - cx.answer_str("hi");
+LL + cx.answer_str("hi")
+ |
+help: consider using a semicolon here, but this will discard any values in the match arms
+ |
+LL | };
+ | +
error: aborting due to previous error