Skip to content

E0184 needs to be updated to new format #35275

Closed
@sophiajt

Description

@sophiajt

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

Error E0184 needs a span_label, updating it from:

error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor
  --> src/test/compile-fail/E0184.rs:11:10
   |
11 | #[derive(Copy)] //~ ERROR E0184
   |          ^^^^
src/test/compile-fail/E0184.rs:11:10: 11:14 note: in this expansion of #[derive(Copy)] (defined in src/test/compile-fail/E0184.rs)

To:

error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor
  --> src/test/compile-fail/E0184.rs:11:10
   |
11 | #[derive(Copy)] //~ ERROR E0184
   |          ^^^^ Copy not allowed on types with destructors
src/test/compile-fail/E0184.rs:11:10: 11:14 note: in this expansion of #[derive(Copy)] (defined in src/test/compile-fail/E0184.rs)

Bonus: I'm not sure that note is helping, you can probably just remove it.

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