Skip to content

Lint on duplicate trait bound #88013

Open
@Aaron1011

Description

@Aaron1011

The following code compiles without any warnings:

pub trait Foo {}

pub fn bar<T: Foo + Foo>() {}

We should lint on the duplicate Foo bound.

Metadata

Metadata

Assignees

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-trait-systemArea: Trait systemC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions