fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0029]: only char and numeric types are allowed in range patterns 2 --> $DIR/match-range-fail.rs:3:9 3 | 4LL | "bar" ..= "foo" => { } 5 | ^^^^^^^^^^^^^^^ ranges require char or numeric types 6 | 7 = note: start type: &'static str 8 = note: end type: &'static str 9 10error[E0029]: only char and numeric types are allowed in range patterns 11 --> $DIR/match-range-fail.rs:10:16 12 | 13LL | 10 ..= "what" => () 14 | ^^^^^^ ranges require char or numeric types 15 | 16 = note: start type: {integer} 17 = note: end type: &'static str 18 19error[E0308]: mismatched types 20 --> $DIR/match-range-fail.rs:17:9 21 | 22LL | 'c' ..= 100 => { } 23 | ^^^^^^^^^^^ expected integer, found char 24 | 25 = note: expected type `{integer}` 26 found type `char` 27 28error: aborting due to 3 previous errors 29 30Some errors have detailed explanations: E0029, E0308. 31For more information about an error, try `rustc --explain E0029`.