]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / half-open-range-patterns / slice_pattern_syntax_problem2.rs
1 // run-pass
2
3 fn main() {
4     let xs = [13, 1, 5, 2, 3, 1, 21, 8];
5     if let [3..=14, ..] = xs {
6         /* this variant must pass for now, unfortunately.
7          * This test is included here to help inform a future plan for these.
8          */
9     };
10 }