]> git.lizzy.rs Git - rust.git/blob - src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / half-open-range-patterns / slice_pattern_syntax_problem1.stderr
1 error[E0658]: half-open range patterns are unstable
2   --> $DIR/slice_pattern_syntax_problem1.rs:4:23
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)]` to the crate attributes to enable
9
10 error[E0658]: `X..` patterns in slices are experimental
11   --> $DIR/slice_pattern_syntax_problem1.rs:4:10
12    |
13 LL |     let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
14    |          ^^^^^^^
15    |
16    = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
17    = help: add `#![feature(half_open_range_patterns)]` to the crate attributes to enable
18
19 error[E0658]: exclusive range pattern syntax is experimental
20   --> $DIR/slice_pattern_syntax_problem1.rs:4:23
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[E0658]: exclusive range pattern syntax is experimental
29   --> $DIR/slice_pattern_syntax_problem1.rs:4:32
30    |
31 LL |     let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
32    |                                ^^^^
33    |
34    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
35    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0658`.