about summary refs log tree commit diff
path: root/compiler/rustc_resolve/messages.ftl
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-02-03 01:32:01 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-02-04 22:16:21 +0100
commit285d8c225d05966040f6a69bfdea83165b54483f (patch)
tree18dc88664286add9ebb16ac5f3108c7c7748b079 /compiler/rustc_resolve/messages.ftl
parent4e3eed48926b8b70eee8beb082e37ffa4985c0ed (diff)
downloadrust-285d8c225d05966040f6a69bfdea83165b54483f.tar.gz
rust-285d8c225d05966040f6a69bfdea83165b54483f.zip
Suggest `[tail @ ..]` on `[..tail]` and `[...tail]` where `tail` is unresolved
Diffstat (limited to 'compiler/rustc_resolve/messages.ftl')
-rw-r--r--compiler/rustc_resolve/messages.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/messages.ftl b/compiler/rustc_resolve/messages.ftl
index 02847a0f5f9..769c469a5ab 100644
--- a/compiler/rustc_resolve/messages.ftl
+++ b/compiler/rustc_resolve/messages.ftl
@@ -292,6 +292,9 @@ resolve_underscore_lifetime_name_cannot_be_used_here =
 resolve_unexpected_res_change_ty_to_const_param_sugg =
     you might have meant to write a const parameter here
 
+resolve_unexpected_res_use_at_op_in_slice_pat_with_range_sugg =
+    if you meant to collect the rest of the slice in `{$ident}`, use the at operator
+
 resolve_unreachable_label =
     use of unreachable label `{$name}`
     .label = unreachable label `{$name}`