about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-11-27 22:18:03 +0900
committerHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-11-27 22:18:03 +0900
commitacec70de9b0b76cb5b077b030360fa217ccdcdec (patch)
tree5cb1c4c0d63bdf0393d18e578d8c6743f774c3ed /tests/ui
parent730d299354f7ef09d8e30609110fc499e0e22d71 (diff)
downloadrust-acec70de9b0b76cb5b077b030360fa217ccdcdec.tar.gz
rust-acec70de9b0b76cb5b077b030360fa217ccdcdec.zip
Change help message to make some sense in broader context
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/suggestions/range-index-instead-of-colon.rs2
-rw-r--r--tests/ui/suggestions/range-index-instead-of-colon.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/suggestions/range-index-instead-of-colon.rs b/tests/ui/suggestions/range-index-instead-of-colon.rs
index 0805102de78..3267527ecf2 100644
--- a/tests/ui/suggestions/range-index-instead-of-colon.rs
+++ b/tests/ui/suggestions/range-index-instead-of-colon.rs
@@ -3,5 +3,5 @@
 fn main() {
     &[1, 2, 3][1:2];
     //~^ ERROR: expected one of
-    //~| HELP: you might have meant to make a slice with range index
+    //~| HELP: you might have meant a range expression
 }
diff --git a/tests/ui/suggestions/range-index-instead-of-colon.stderr b/tests/ui/suggestions/range-index-instead-of-colon.stderr
index c7a12e9e4fb..df29356cc16 100644
--- a/tests/ui/suggestions/range-index-instead-of-colon.stderr
+++ b/tests/ui/suggestions/range-index-instead-of-colon.stderr
@@ -4,7 +4,7 @@ error: expected one of `.`, `?`, `]`, or an operator, found `:`
 LL |     &[1, 2, 3][1:2];
    |                 ^ expected one of `.`, `?`, `]`, or an operator
    |
-help: you might have meant to make a slice with range index
+help: you might have meant a range expression
    |
 LL |     &[1, 2, 3][1..2];
    |                 ~~