blob: 9281dda678ddd51ab73bac4675bcce4860065881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#![feature(exclusive_range_pattern)]
fn main() {}
#[cfg(FALSE)]
fn foo() {
if let ..=5 = 0 {}
//~^ ERROR half-open range patterns are unstable
if let ...5 = 0 {}
//~^ ERROR half-open range patterns are unstable
//~| ERROR range-to patterns with `...` are not allowed
if let ..5 = 0 {}
//~^ ERROR half-open range patterns are unstable
if let 5..= = 0 {}
//~^ ERROR inclusive range with no end
if let 5... = 0 {}
//~^ ERROR inclusive range with no end
}
|