mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 09:33:36 +00:00
16 lines
466 B
Text
16 lines
466 B
Text
|
error: this bound is already specified as the supertrait of `PartialOrd`
|
||
|
--> $DIR/ice-11422.rs:6:31
|
||
|
|
|
||
|
LL | fn gen() -> impl PartialOrd + PartialEq + Debug {}
|
||
|
| ^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::implied-bounds-in-impls` implied by `-D warnings`
|
||
|
help: try removing this bound
|
||
|
|
|
||
|
LL - fn gen() -> impl PartialOrd + PartialEq + Debug {}
|
||
|
LL + fn gen() -> impl PartialOrd + Debug {}
|
||
|
|
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|