Skip to content

E0204 needs to be updated to new format #35381

Closed
@sophiajt

Description

@sophiajt

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

Error E0204 needs a span_label and updated title, changing it from:

error[E0204]: the trait `Copy` may not be implemented for this type; field `ty` does not implement `Copy`
  --> src/test/compile-fail/E0204.rs:17:10
   |
17 | #[derive(Copy)] //~ ERROR E0204
   |          ^^^^
src/test/compile-fail/E0204.rs:17:10: 17:14 note: in this expansion of #[derive(Copy)] (defined in src/test/compile-fail/E0204.rs)

To:

error[E0204]: the trait `Copy` may not be implemented for this type
  --> src/test/compile-fail/E0204.rs:17:10
   |
17 | #[derive(Copy)] //~ ERROR E0204
   |          ^^^^ field `ty` does not implement `Copy`
src/test/compile-fail/E0204.rs:17:10: 17:14 note: in this expansion of #[derive(Copy)] (defined in src/test/compile-fail/E0204.rs)

Note: I'm not sure the "expansion of..." part is helpful, you could also remove that.

Seems related to #35382

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions