1
Fork 0

Reestablish feature gate for RangeFrom in slices

This commit is contained in:
Jubilee Young 2021-05-27 14:36:45 -07:00
parent 45d9dd69a7
commit 43bad44ff0
6 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,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.
*/
};
}