rust/src/test/ui/half-open-range-patterns/pat-tuple-4.rs
Mazdak Farrokhzad d5598aa7a0 Introduce #![feature(half_open_range_patterns)].
This feature adds `X..`, `..X`, and `..=X` patterns.
2020-01-10 07:29:04 +01:00

14 lines
188 B
Rust

// check-pass
#![feature(half_open_range_patterns)]
#![feature(exclusive_range_pattern)]
fn main() {
const PAT: u8 = 1;
match 0 {
(.. PAT) => {}
_ => {}
}
}