Skip to content

E0423 needs to be updated to new format #35796

Closed
@sophiajt

Description

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

E0423 needs a span_label, updating it from:

error[E0423]: `Foo` is the name of a struct or struct variant, but this expression uses it like a function name
  --> src/test/compile-fail/E0423.rs:14:13
   |
14 |     let f = Foo(); //~ ERROR E0423
   |             ^^^
   |
   = help: did you mean to write: `Foo { /* fields */ }`?

To:

error[E0423]: `Foo` is the name of a struct or struct variant, but this expression uses it like a function name
  --> src/test/compile-fail/E0423.rs:14:13
   |
14 |     let f = Foo(); //~ ERROR E0423
   |             ^^^ struct called like a function
   |
   = help: did you mean to write: `Foo { /* fields */ }`?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions