Skip to content

E0528 needs to be updated to new format #36194

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/E0528.rs

E0528 needs a span_label, updating it from:

error[E0528]: pattern requires at least 3 elements but array has 2
  --> src/test/compile-fail/E0528.rs:16:10
   |
16 |         &[a, b, c, rest..] => { //~ ERROR E0528
   |          ^^^^^^^^^^^^^^^^^

To:

error[E0528]: pattern requires at least 3 elements but array has 2
  --> src/test/compile-fail/E0528.rs:16:10
   |
16 |         &[a, b, c, rest..] => { //~ ERROR E0528
   |          ^^^^^^^^^^^^^^^^^ pattern cannot match array of 2 elements

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions