2022-08-31 08:24:45 -05:00
|
|
|
error: this trait bound is already specified in the where clause
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:7:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-09-22 11:04:22 -05:00
|
|
|
= help: consider removing this trait bound
|
2022-08-31 08:24:45 -05:00
|
|
|
note: the lint level is defined here
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:1:9
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::trait_duplication_in_bounds)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: this trait bound is already specified in the where clause
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:7:23
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:38:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:53:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:60:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:60:25
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Default + Clone;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:65:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Default;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: this trait bound is already specified in trait declaration
|
2024-02-10 08:09:12 -06:00
|
|
|
--> tests/ui/trait_duplication_in_bounds_unfixable.rs:101:15
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | Self: Iterator<Item = Foo>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider removing this trait bound
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|