1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//error-pattern: lower range bound //error-pattern: non-numeric //error-pattern: mismatched types fn main() { match 5u { 6u .. 1u => { } _ => { } }; match "wow" { "bar" .. "foo" => { } }; match 5u { 'c' .. 100u => { } _ => { } }; }