summary refs log tree commit diff
path: root/src/test/ui/feature-gate-advanced-slice-features.stderr
blob: 815593d07a5f4de3329fdc8e29dd393cecaf2f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
  --> $DIR/feature-gate-advanced-slice-features.rs:18:9
   |
18 |         [ xs.., 4, 5 ] => {}    //~ ERROR multiple-element slice matches
   |         ^^^^^^^^^^^^^^
   |
   = help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable

error: multiple-element slice matches anywhere but at the end of a slice (e.g. `[0, ..xs, 0]`) are experimental (see issue #23121)
  --> $DIR/feature-gate-advanced-slice-features.rs:19:9
   |
19 |         [ 1, xs.., 5 ] => {}    //~ ERROR multiple-element slice matches
   |         ^^^^^^^^^^^^^^
   |
   = help: add #![feature(advanced_slice_patterns)] to the crate attributes to enable

error: aborting due to 2 previous errors