about summary refs log tree commit diff
path: root/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs
blob: 62e67530fc7b15a12ebabf1bea0f48b0e7f120b3 (plain)
1
2
3
4
5
6
7
8
9
10
//@ run-pass

fn main() {
    let xs = [13, 1, 5, 2, 3, 1, 21, 8];
    if let [3..=14, ..] = xs {
        /* this variant must pass for now, unfortunately.
         * This test is included here to help inform a future plan for these.
         */
    };
}