1 error[E0029]: only char and numeric types are allowed in range patterns
2 --> $DIR/match-range-fail.rs:3:9
4 LL | "bar" ..= "foo" => { }
5 | ^^^^^^^^^^^^^^^ ranges require char or numeric types
7 = note: start type: &'static str
8 = note: end type: &'static str
10 error[E0029]: only char and numeric types are allowed in range patterns
11 --> $DIR/match-range-fail.rs:10:16
13 LL | 10 ..= "what" => ()
14 | ^^^^^^ ranges require char or numeric types
16 = note: start type: {integer}
17 = note: end type: &'static str
19 error[E0308]: mismatched types
20 --> $DIR/match-range-fail.rs:17:9
23 | - this match expression has type `{integer}`
24 LL | 'c' ..= 100 => { }
25 | ^^^^^^^^^^^ expected integer, found char
27 = note: expected type `{integer}`
30 error: aborting due to 3 previous errors
32 Some errors occurred: E0029, E0308.
33 For more information about an error, try `rustc --explain E0029`.