]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-range-fail.stderr
Auto merge of #52553 - Pazzaz:vecdeque-append, r=SimonSapin
[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:13: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:20: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:27:9
21    |
22 LL |         'c' ..= 100 => { }
23    |         ^^^^^^^^^^^ expected integral variable, found char
24    |
25    = note: expected type `{integer}`
26               found type `char`
27
28 error: aborting due to 3 previous errors
29
30 Some errors occurred: E0029, E0308.
31 For more information about an error, try `rustc --explain E0029`.