11error[E0308]: mismatched types
22 --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:12
33 |
4+ LL | match [5..4, 99..105, 43..44] {
5+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
46LL | [..9, 99..100, _] => {},
57 | ^ expected struct `std::ops::Range`, found integer
68 |
@@ -10,6 +12,8 @@ LL | [..9, 99..100, _] => {},
1012error[E0308]: mismatched types
1113 --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:15
1214 |
15+ LL | match [5..4, 99..105, 43..44] {
16+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
1317LL | [..9, 99..100, _] => {},
1418 | ^^ --- this is of type `{integer}`
1519 | |
@@ -21,6 +25,8 @@ LL | [..9, 99..100, _] => {},
2125error[E0308]: mismatched types
2226 --> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:19
2327 |
28+ LL | match [5..4, 99..105, 43..44] {
29+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
2430LL | [..9, 99..100, _] => {},
2531 | -- ^^^ expected struct `std::ops::Range`, found integer
2632 | |
0 commit comments