Skip to content

New lint: simplify duplicate traits in bounds #3413

Closed
@scottmcm

Description

@scottmcm
fn foo() -> impl Iterator<Item=i32> + ExactSizeIterator { 0..10 }

can be simplified down to just

fn foo() -> impl ExactSizeIterator<Item=i32> { 0..10 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions