Reestablish feature gate for RangeFrom in slices
This commit is contained in:
parent
45d9dd69a7
commit
43bad44ff0
6 changed files with 99 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue