2019-07-24 04:01:38 +02:00
|
|
|
error[E0308]: mismatched types
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:12
|
2019-07-09 08:44:56 +02:00
|
|
|
|
|
2021-12-15 23:16:21 +00:00
|
|
|
LL | match [5..4, 99..105, 43..44] {
|
|
|
|
| ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
|
2019-07-09 08:44:56 +02:00
|
|
|
LL | [..9, 99..100, _] => {},
|
2023-01-02 18:00:33 -08:00
|
|
|
| ^ expected `Range<{integer}>`, found integer
|
2019-07-09 08:44:56 +02:00
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected struct `std::ops::Range<{integer}>`
|
|
|
|
found type `{integer}`
|
2019-07-09 08:44:56 +02:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:15
|
2019-07-09 08:44:56 +02:00
|
|
|
|
|
2021-12-15 23:16:21 +00:00
|
|
|
LL | match [5..4, 99..105, 43..44] {
|
|
|
|
| ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
|
2019-07-09 08:44:56 +02:00
|
|
|
LL | [..9, 99..100, _] => {},
|
2019-12-13 23:33:58 +01:00
|
|
|
| ^^ --- this is of type `{integer}`
|
|
|
|
| |
|
2023-01-02 18:00:33 -08:00
|
|
|
| expected `Range<{integer}>`, found integer
|
2019-12-13 23:33:58 +01:00
|
|
|
|
|
|
|
|
= note: expected struct `std::ops::Range<{integer}>`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-09-24 17:22:04 +02:00
|
|
|
--> $DIR/exclusive_range_pattern_syntax_collision3.rs:5:19
|
2019-12-13 23:33:58 +01:00
|
|
|
|
|
2021-12-15 23:16:21 +00:00
|
|
|
LL | match [5..4, 99..105, 43..44] {
|
|
|
|
| ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
|
2019-12-13 23:33:58 +01:00
|
|
|
LL | [..9, 99..100, _] => {},
|
2023-01-02 18:00:33 -08:00
|
|
|
| -- ^^^ expected `Range<{integer}>`, found integer
|
2019-12-13 23:33:58 +01:00
|
|
|
| |
|
|
|
|
| this is of type `{integer}`
|
2019-07-09 08:44:56 +02:00
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected struct `std::ops::Range<{integer}>`
|
|
|
|
found type `{integer}`
|
2019-07-09 08:44:56 +02:00
|
|
|
|
2019-12-11 10:04:34 +01:00
|
|
|
error: aborting due to 3 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-07-24 04:01:38 +02:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|