1 // Test old and new syntax for inclusive range patterns.
3 #![allow(ellipsis_inclusive_range_patterns)]
6 assert!(match 42 { 0 ... 100 => true, _ => false });
7 assert!(match 42 { 0 ..= 100 => true, _ => false });
9 assert!(match 'x' { 'a' ... 'z' => true, _ => false });
10 assert!(match 'x' { 'a' ..= 'z' => true, _ => false });