Split slice part of feature(half_open_range_patterns) to [...]_in_slices

This commit is contained in:
Urgau 2022-10-05 23:18:22 +02:00
parent a688a0305f
commit c084c26397
12 changed files with 63 additions and 8 deletions

View file

@ -14,7 +14,7 @@ LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
| ^^^^^^^
|
= note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
= help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
= help: add `#![feature(half_open_range_patterns_in_slices)]` to the crate attributes to enable
error[E0658]: exclusive range pattern syntax is experimental
--> $DIR/slice_pattern_syntax_problem1.rs:4:23