Skip to content

E0393 needs to be updated to new format #35632

Closed
@sophiajt

Description

@sophiajt

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

E0393 needs a span_label, updated title, and a note, changing it from:

error[E0393]: the type parameter `T` must be explicitly specified in an object type because its default value `Self` references the type `Self`
  --> src/test/compile-fail/E0393.rs:13:43
   |
13 | fn together_we_will_rule_the_galaxy(son: &A) {} //~ ERROR E0393
   |                                           ^

To:

error[E0393]: the type parameter `T` must be explicitly specified
  --> src/test/compile-fail/E0393.rs:13:43
   |
13 | fn together_we_will_rule_the_galaxy(son: &A) {} //~ ERROR E0393
   |                                           ^ missing reference to `T`
   |
   = note: because of the default `Self` reference, type parameters must be specified on object types

Metadata

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