File tree 2 files changed +8
-4
lines changed
compiler/rustc_parse/locales
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ parse_match_arm_body_without_braces = `match` arm body without braces
220
220
[ one ] statement
221
221
*[ other ] statements
222
222
} with a body
223
- .suggestion_use_comma_not_semicolon = use a comma to end a `match` arm expression
223
+ .suggestion_use_comma_not_semicolon = replace `;` with `,` to end a `match` arm expression
224
224
225
225
parse_inclusive_range_extra_equals = unexpected `=` after inclusive range
226
226
.suggestion_remove_eq = use `..=` instead
Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ error: `match` arm body without braces
2
2
--> $DIR/match-arm-without-braces.rs:26:27
3
3
|
4
4
LL | Some(Val::Foo) => 3;
5
- | -- ^- help: use a comma to end a `match` arm expression: `,`
6
- | | |
7
- | | this statement is not surrounded by a body
5
+ | -- ^ this statement is not surrounded by a body
6
+ | |
8
7
| while parsing the `match` arm starting here
8
+ |
9
+ help: replace `;` with `,` to end a `match` arm expression
10
+ |
11
+ LL | Some(Val::Foo) => 3,
12
+ | ~
9
13
10
14
error: `match` arm body without braces
11
15
--> $DIR/match-arm-without-braces.rs:31:11
You can’t perform that action at this time.
0 commit comments