File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
compiler/rustc_parse/locales Expand file tree Collapse file tree 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
220220 [ one ] statement
221221 *[ other ] statements
222222 } 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
224224
225225parse_inclusive_range_extra_equals = unexpected `=` after inclusive range
226226 .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
22 --> $DIR/match-arm-without-braces.rs:26:27
33 |
44LL | 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+ | |
87 | 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+ | ~
913
1014error: `match` arm body without braces
1115 --> $DIR/match-arm-without-braces.rs:31:11
You can’t perform that action at this time.
0 commit comments