]> git.lizzy.rs Git - rust.git/blob - src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.stderr
Rollup merge of #105674 - estebank:iterator-chains, r=oli-obk
[rust.git] / src / test / ui / half-open-range-patterns / exclusive_range_pattern_syntax_collision.stderr
1 error[E0308]: mismatched types
2   --> $DIR/exclusive_range_pattern_syntax_collision.rs:6:13
3    |
4 LL |     match [5..4, 99..105, 43..44] {
5    |           ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
6 LL |         [_, 99.., _] => {},
7    |             ^^ expected struct `Range`, found integer
8    |
9    = note: expected struct `std::ops::Range<{integer}>`
10                 found type `{integer}`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.