summaryrefslogtreecommitdiffstats
path: root/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr
blob: ec3472a50368410d8b1561ff47604edb0fd5dcdc (plain)
1
2
3
4
5
6
7
8
9
error[E0527]: pattern requires 2 elements but array has 8
  --> $DIR/slice_pattern_syntax_problem0.rs:11:9
   |
LL |     let [first_three @ ..3, rest @ 2..] = xs;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 8 elements

error: aborting due to previous error

For more information about this error, try `rustc --explain E0527`.