Skip to content

E0207 reports "unconstrained lifetime parameter" for type parameters #35642

Closed
@SpaceManiac

Description

@SpaceManiac

E0207 always reads unconstrained lifetime parameter in the advanced diagnostics, regardless of whether the unconstrained parameter is a lifetime or type parameter.

The fix seems simple - substitute format!("unconstrained lifetime parameter") with format!("unconstrained {} parameter", kind) in report_unused_parameter - but I don't have the resources presently to get rustc compiling myself to make a PR.

A test for E0207 added in the fix for #35302 enforces this incorrect behavior and would need to also be updated.

Spotted by Sgeo_ on IRC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions