about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-27 06:11:53 +0100
committerGitHub <noreply@github.com>2023-02-27 06:11:53 +0100
commit69b1b94d0c3fc7fd4948aa547493cf36fdf14705 (patch)
tree0c237f88f4f184f04856239804b0215f3e09da2c /tests
parent2f6ba7b4da81afe966be8b49a43f95590f94c0f9 (diff)
parent32da026c35d07e1e256421b0860d136f01ee3bf0 (diff)
downloadrust-69b1b94d0c3fc7fd4948aa547493cf36fdf14705.tar.gz
rust-69b1b94d0c3fc7fd4948aa547493cf36fdf14705.zip
Rollup merge of #108477 - y21:replace-semi-with-comma-sugg, r=compiler-errors
Make `match` arm comma suggestion more clear

Fixes #108472
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/parser/match-arm-without-braces.stderr10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/ui/parser/match-arm-without-braces.stderr b/tests/ui/parser/match-arm-without-braces.stderr
index 37d55aa53f8..ee1c8e562fc 100644
--- a/tests/ui/parser/match-arm-without-braces.stderr
+++ b/tests/ui/parser/match-arm-without-braces.stderr
@@ -2,10 +2,14 @@ error: `match` arm body without braces
   --> $DIR/match-arm-without-braces.rs:26:27
    |
 LL |         Some(Val::Foo) => 3;
-   |                        -- ^- help: use a comma to end a `match` arm expression: `,`
-   |                        |  |
-   |                        |  this statement is not surrounded by a body
+   |                        -- ^ this statement is not surrounded by a body
+   |                        |
    |                        while parsing the `match` arm starting here
+   |
+help: replace `;` with `,` to end a `match` arm expression
+   |
+LL |         Some(Val::Foo) => 3,
+   |                            ~
 
 error: `match` arm body without braces
   --> $DIR/match-arm-without-braces.rs:31:11