1 // Test old and new syntax for inclusive range patterns.
4 assert!(match 42 { 0 ... 100 => true, _ => false });
5 assert!(match 42 { 0 ..= 100 => true, _ => false });
7 assert!(match 'x' { 'a' ... 'z' => true, _ => false });
8 assert!(match 'x' { 'a' ..= 'z' => true, _ => false });