]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-range-fail.stderr
Reword label as per review comment
[rust.git] / src / test / ui / match / match-range-fail.stderr
1 error[E0029]: only char and numeric types are allowed in range patterns
2   --> $DIR/match-range-fail.rs:3:9
3    |
4 LL |         "bar" ..= "foo" => { }
5    |         ^^^^^^^^^^^^^^^ ranges require char or numeric types
6    |
7    = note: start type: &'static str
8    = note: end type: &'static str
9
10 error[E0029]: only char and numeric types are allowed in range patterns
11   --> $DIR/match-range-fail.rs:10:16
12    |
13 LL |         10 ..= "what" => ()
14    |                ^^^^^^ ranges require char or numeric types
15    |
16    = note: start type: {integer}
17    = note: end type: &'static str
18
19 error[E0308]: mismatched types
20   --> $DIR/match-range-fail.rs:17:9
21    |
22 LL |     match 5 {
23    |           - this match expression has type `{integer}`
24 LL |         'c' ..= 100 => { }
25    |         ^^^^^^^^^^^ expected integer, found char
26    |
27    = note: expected type `{integer}`
28               found type `char`
29
30 error: aborting due to 3 previous errors
31
32 Some errors occurred: E0029, E0308.
33 For more information about an error, try `rustc --explain E0029`.