Skip to content

needless_lifetimes ignores trait bounds #292

Closed
@Manishearth

Description

@Manishearth

fn foo<'a, T: Foo<'a>>(&'a u8, T) will hit the lint. It shouldn't, whenever we have lifetimes in trait bounds we should bail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions