blob: 815593d07a5f4de3329fdc8e29dd393cecaf2f72 [file] [log] [blame]
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