2019-07-29 21:22:09 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(exclusive_range_pattern)]
|
|
|
|
|
|
|
|
#![allow(ellipsis_inclusive_range_patterns)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
macro_rules! mac_expr {
|
|
|
|
($e:expr) => {
|
|
|
|
if let 2...$e = 3 {}
|
|
|
|
if let 2..=$e = 3 {}
|
|
|
|
if let 2..$e = 3 {}
|
2019-12-11 03:04:34 -06:00
|
|
|
if let ..$e = 3 {}
|
|
|
|
if let ..=$e = 3 {}
|
|
|
|
if let $e.. = 5 {}
|
|
|
|
if let $e..5 = 4 {}
|
|
|
|
if let $e..=5 = 4 {}
|
2019-07-29 21:22:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
mac_expr!(4);
|
|
|
|
}
|