1
1
error[E0308]: mismatched types
2
2
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:12
3
3
|
4
+ LL | match [5..4, 99..105, 43..44] {
5
+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
4
6
LL | [..9, 99..100, _] => {},
5
7
| ^ expected struct `std::ops::Range`, found integer
6
8
|
@@ -10,6 +12,8 @@ LL | [..9, 99..100, _] => {},
10
12
error[E0308]: mismatched types
11
13
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:15
12
14
|
15
+ LL | match [5..4, 99..105, 43..44] {
16
+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
13
17
LL | [..9, 99..100, _] => {},
14
18
| ^^ --- this is of type `{integer}`
15
19
| |
@@ -21,6 +25,8 @@ LL | [..9, 99..100, _] => {},
21
25
error[E0308]: mismatched types
22
26
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:6:19
23
27
|
28
+ LL | match [5..4, 99..105, 43..44] {
29
+ | ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
24
30
LL | [..9, 99..100, _] => {},
25
31
| -- ^^^ expected struct `std::ops::Range`, found integer
26
32
| |
0 commit comments