]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:12 | |
3 | | | |
5e7ed085 FG |
4 | LL | match [5..4, 99..105, 43..44] { |
5 | | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]` | |
dfeec247 XL |
6 | LL | [..9, 99..100, _] => {}, |
7 | | ^ expected struct `std::ops::Range`, found integer | |
8 | | | |
9 | = note: expected struct `std::ops::Range<{integer}>` | |
10 | found type `{integer}` | |
11 | ||
12 | error[E0308]: mismatched types | |
13 | --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:15 | |
14 | | | |
5e7ed085 FG |
15 | LL | match [5..4, 99..105, 43..44] { |
16 | | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]` | |
dfeec247 XL |
17 | LL | [..9, 99..100, _] => {}, |
18 | | ^^ --- this is of type `{integer}` | |
19 | | | | |
20 | | expected struct `std::ops::Range`, found integer | |
21 | | | |
22 | = note: expected struct `std::ops::Range<{integer}>` | |
23 | found type `{integer}` | |
24 | ||
25 | error[E0308]: mismatched types | |
26 | --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:19 | |
27 | | | |
5e7ed085 FG |
28 | LL | match [5..4, 99..105, 43..44] { |
29 | | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]` | |
dfeec247 XL |
30 | LL | [..9, 99..100, _] => {}, |
31 | | -- ^^^ expected struct `std::ops::Range`, found integer | |
32 | | | | |
33 | | this is of type `{integer}` | |
34 | | | |
35 | = note: expected struct `std::ops::Range<{integer}>` | |
36 | found type `{integer}` | |
37 | ||
38 | error: aborting due to 3 previous errors | |
39 | ||
40 | For more information about this error, try `rustc --explain E0308`. |