Skip to content

Duplicate diagnostics for operators #22254

@ChayimFriedman2

Description

@ChayimFriedman2

Code:

fn foo() {
    1 + ""
}

r-a diagnostics, with experimental diagnostics enabled:

the trait bound `i32: Add<&str>` is not satisfied
-------
the trait bound `i32: Add<&str>` is not satisfied

We probably add the obligation lhs: OpTrait<rhs> twice.

Metadata

Metadata

Assignees

Labels

A-diagnosticsdiagnostics / error reportingC-bugCategory: bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions