2022-07-13 11:25:19 +00:00
|
|
|
error: these bounds contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:6:15
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:1:9
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::trait_duplication_in_bounds)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these where clauses contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:12:8
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | T: Clone + Clone + Clone + Copy,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these bounds contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:40:26
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | trait BadSelfTraitBound: Clone + Clone + Clone {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these where clauses contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:47:15
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | Self: Clone + Clone + Clone;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these bounds contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:61:24
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these where clauses contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:68:12
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | T: Clone + Clone + Clone + Copy,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these bounds contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:101:19
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
|
2022-08-30 04:33:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u64> + GenericTrait<u32>`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
|
|
error: these bounds contain repeated elements
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:109:22
|
2022-04-12 14:21:08 +00:00
|
|
|
|
|
2022-07-13 11:25:19 +00:00
|
|
|
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
|
2022-08-30 04:33:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::clone::Clone + foo::Clone`
|
2022-04-12 14:21:08 +00:00
|
|
|
|
2023-04-30 12:45:45 +00:00
|
|
|
error: this trait bound is already specified in trait declaration
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/trait_duplication_in_bounds.rs:117:33
|
2023-04-30 12:45:45 +00:00
|
|
|
|
|
|
|
|
LL | fn bad_trait_object(arg0: &(dyn Any + Send + Send)) {
|
2023-04-30 13:34:46 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `Any + Send`
|
2023-04-30 12:45:45 +00:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2020-08-11 13:43:21 +00:00
|
|
|
|