1
Fork 0

Stabilize exclusive_range

This commit is contained in:
Ross Smyth 2024-04-27 20:35:32 -04:00
parent 79734f1db8
commit 6967d1c0fc
74 changed files with 300 additions and 619 deletions

View file

@ -3,7 +3,5 @@ fn main() {
let xs = [13, 1, 5, 2, 3, 1, 21, 8];
let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs;
//~^ `X..` patterns in slices are experimental
//~| exclusive range pattern syntax is experimental
//~| exclusive range pattern syntax is experimental
//~| ERROR: refutable pattern
}