fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.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 | -----^^^^^----- 6 | | | 7 | | this is of type `&'static str` but it should be `char` or numeric 8 | this is of type `&'static str` but it should be `char` or numeric 9 10error[E0029]: only char and numeric types are allowed in range patterns 11 --> $DIR/match-range-fail.rs:8:16 12 | 13LL | 10 ..= "what" => () 14 | -- ^^^^^^ this is of type `&'static str` but it should be `char` or numeric 15 | | 16 | this is of type `{integer}` 17 18error[E0029]: only char and numeric types are allowed in range patterns 19 --> $DIR/match-range-fail.rs:13:9 20 | 21LL | true ..= "what" => {} 22 | ----^^^^^------ 23 | | | 24 | | this is of type `&'static str` but it should be `char` or numeric 25 | this is of type `bool` but it should be `char` or numeric 26 27error[E0308]: mismatched types 28 --> $DIR/match-range-fail.rs:18:9 29 | 30LL | 'c' ..= 100 => { } 31 | ^^^ --- this is of type `{integer}` 32 | | 33 | expected integer, found `char` 34 35error: aborting due to 4 previous errors 36 37Some errors have detailed explanations: E0029, E0308. 38For more information about an error, try `rustc --explain E0029`.