diff options
| author | Ross Smyth <18294397+RossSmyth@users.noreply.github.com> | 2024-04-27 20:35:32 -0400 |
|---|---|---|
| committer | Ross Smyth <18294397+RossSmyth@users.noreply.github.com> | 2024-05-02 19:42:31 -0400 |
| commit | 6967d1c0fcea4ade223bf3ae443a87d504005cbf (patch) | |
| tree | 321a882cee7f5b56b14c734c26d1487fd29f6f46 /tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr | |
| parent | 79734f1db8dbe322192dea32c0f6b80ab14c4c1d (diff) | |
| download | rust-6967d1c0fcea4ade223bf3ae443a87d504005cbf.tar.gz rust-6967d1c0fcea4ade223bf3ae443a87d504005cbf.zip | |
Stabilize exclusive_range
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.stderr | 24 |
1 files changed, 1 insertions, 23 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 fc549eb65c0..49515919904 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 @@ -8,28 +8,6 @@ LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs; = help: add `#![feature(half_open_range_patterns_in_slices)]` to the crate attributes to enable = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date -error[E0658]: exclusive range pattern syntax is experimental - --> $DIR/slice_pattern_syntax_problem1.rs:4:23 - | -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 - | -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[E0005]: refutable pattern in local binding --> $DIR/slice_pattern_syntax_problem1.rs:4:9 | @@ -44,7 +22,7 @@ help: you might want to use `let else` to handle the variant that isn't matched LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs else { todo!() }; | ++++++++++++++++ -error: aborting due to 4 previous errors +error: aborting due to 2 previous errors Some errors have detailed explanations: E0005, E0658. For more information about an error, try `rustc --explain E0005`. |
