fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
789 B21 linesraw
1error[E0527]: pattern requires 2 elements but array has 3
2  --> $DIR/exclusive_range_pattern_syntax_collision2.rs:6:9
3   |
4LL |         [_, 99..] => {},
5   |         ^^^^^^^^^ expected 3 elements
6
7error[E0308]: mismatched types
8  --> $DIR/exclusive_range_pattern_syntax_collision2.rs:6:13
9   |
10LL |     match [5..4, 99..105, 43..44] {
11   |           ----------------------- this expression has type `[std::ops::Range<{integer}>; 3]`
12LL |         [_, 99..] => {},
13   |             ^^ expected `Range<{integer}>`, found integer
14   |
15   = note: expected struct `std::ops::Range<{integer}>`
16                found type `{integer}`
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0308, E0527.
21For more information about an error, try `rustc --explain E0308`.