]> git.lizzy.rs Git - rust.git/blob - src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.stderr
Auto merge of #91962 - matthiaskrgr:rollup-2g082jw, r=matthiaskrgr
[rust.git] / src / test / ui / half-open-range-patterns / exclusive_range_pattern_syntax_collision2.stderr
1 error[E0527]: pattern requires 2 elements but array has 3
2   --> $DIR/exclusive_range_pattern_syntax_collision2.rs:6:9
3    |
4 LL |         [_, 99..] => {},
5    |         ^^^^^^^^^ expected 3 elements
6
7 error[E0308]: mismatched types
8   --> $DIR/exclusive_range_pattern_syntax_collision2.rs:6:13
9    |
10 LL |         [_, 99..] => {},
11    |             ^^ expected struct `std::ops::Range`, found integer
12    |
13    = note: expected struct `std::ops::Range<{integer}>`
14                 found type `{integer}`
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0308, E0527.
19 For more information about an error, try `rustc --explain E0308`.