error[E0308]: mismatched types
--> $DIR/match-range-fail.rs:17:9
|
+LL | match 5 {
+ | - this match expression has type `{integer}`
LL | 'c' ..= 100 => { }
- | ^^^^^^^^^^^ expected integral variable, found char
+ | ^^^^^^^^^^^ expected integer, found char
|
= note: expected type `{integer}`
found type `char`