Warn about duplicated trait bounds like Send + Send #92410
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: playground
There's no warning.
The bug is in
Send
specified twice, instead of one of them being aSync
. It would be nice to warn about this, e.g.:A
+ Send + Send
has no useful purpose, but it looks very similar to a common+ Send + Sync
.The text was updated successfully, but these errors were encountered: