diff options
| author | Kornel <kornel@geekhood.net> | 2025-05-09 18:57:07 +0900 |
|---|---|---|
| committer | Kornel <kornel@geekhood.net> | 2025-05-09 22:16:34 +0900 |
| commit | fc20650c6a9aedbea9155b04fb1a4bcc29220480 (patch) | |
| tree | 0aee1c99e745484f8f7784894f578c9979cf48f6 /compiler/rustc_parse | |
| parent | da1e442ebde8d527f3872c0cac5b371ff6ea0cc7 (diff) | |
| download | rust-fc20650c6a9aedbea9155b04fb1a4bcc29220480.tar.gz rust-fc20650c6a9aedbea9155b04fb1a4bcc29220480.zip | |
Error message for top-level or-patterns suggesting a solution
Diffstat (limited to 'compiler/rustc_parse')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 3d7e0fcc308..f88c15785d3 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -690,8 +690,8 @@ parse_nul_in_c_str = null characters in C string literals are not supported parse_or_in_let_chain = `||` operators are not supported in let chain conditions -parse_or_pattern_not_allowed_in_fn_parameters = top-level or-patterns are not allowed in function parameters -parse_or_pattern_not_allowed_in_let_binding = top-level or-patterns are not allowed in `let` bindings +parse_or_pattern_not_allowed_in_fn_parameters = function parameters require top-level or-patterns in parentheses +parse_or_pattern_not_allowed_in_let_binding = `let` bindings require top-level or-patterns in parentheses parse_out_of_range_hex_escape = out of range hex escape .label = must be a character in the range [\x00-\x7f] |
