about summary refs log tree commit diff
path: root/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
diff options
context:
space:
mode:
authorRowan S-L <r@fawkes.io>2024-01-19 13:37:18 -0500
committerRowan S-L <r@fawkes.io>2024-01-19 13:38:24 -0500
commit1c77f8738fdb33412bbd6ae83c16fe9cc6356815 (patch)
tree8eea5b32e4657c1c061f72bbba0da217e0e7d9d4 /tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
parent32ec40c68533f325a3c8fe787b77ef5c9e209b23 (diff)
downloadrust-1c77f8738fdb33412bbd6ae83c16fe9cc6356815.tar.gz
rust-1c77f8738fdb33412bbd6ae83c16fe9cc6356815.zip
add help message for `exclusive_range_pattern` error
Diffstat (limited to 'tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr')
-rw-r--r--tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
index 5edd877bee0..be8f3aa5051 100644
--- a/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
+++ b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
@@ -17,6 +17,7 @@ LL |     let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+   = help: use an inclusive range pattern, like N..=M
 
 error[E0658]: exclusive range pattern syntax is experimental
   --> $DIR/slice_pattern_syntax_problem1.rs:4:32
@@ -27,6 +28,7 @@ LL |     let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+   = help: use an inclusive range pattern, like N..=M
 
 error: aborting due to 3 previous errors