Skip to content

E0282 needs to be updated to new format #35312

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/issue-23041.rs

Error E0282 needs a span_label, a note, and an updated title, updating it from:

error[E0282]: unable to infer enough type information about `_`; type annotations or generic parameter binding required
  --> src/test/compile-fail/issue-23041.rs:16:22
   |
16 |     b.downcast_ref::<fn(_)->_>(); //~ ERROR E0282
   |                      ^^^^^^^^

To:

error[E0282]: unable to infer enough type information about `_` 
  --> src/test/compile-fail/issue-23041.rs:16:22
   |
16 |     b.downcast_ref::<fn(_)->_>(); //~ ERROR E0282
   |                      ^^^^^^^^ cannot infer type for `_`
   |
   = note: type annotations or generic parameter binding required

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