]> git.proxmox.com Git - rustc.git/blob - tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / half-open-range-patterns / slice_pattern_syntax_problem1.stderr
1 error[E0658]: `X..` patterns in slices are experimental
2 --> $DIR/slice_pattern_syntax_problem1.rs:4:10
3 |
4 LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
5 | ^^^^^^^
6 |
7 = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
8 = help: add `#![feature(half_open_range_patterns_in_slices)]` to the crate attributes to enable
9
10 error[E0658]: exclusive range pattern syntax is experimental
11 --> $DIR/slice_pattern_syntax_problem1.rs:4:23
12 |
13 LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
14 | ^^^
15 |
16 = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
17 = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
18
19 error[E0658]: exclusive range pattern syntax is experimental
20 --> $DIR/slice_pattern_syntax_problem1.rs:4:32
21 |
22 LL | let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
23 | ^^^^
24 |
25 = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
26 = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0658`.