rust/tests/ui/trait_duplication_in_bounds.stderr

57 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-07-13 06:25:19 -05:00
error: these bounds contain repeated elements
--> $DIR/trait_duplication_in_bounds.rs:5:15
|
2022-07-13 06:25:19 -05:00
LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
note: the lint level is defined here
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:2:9
|
LL | #![deny(clippy::trait_duplication_in_bounds)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: these where clauses contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:11:8
|
2022-07-13 06:25:19 -05:00
LL | T: Clone + Clone + Clone + Copy,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
error: these bounds contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:39:26
|
2022-07-13 06:25:19 -05:00
LL | trait BadSelfTraitBound: Clone + Clone + Clone {
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
error: these where clauses contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:46:15
|
2022-07-13 06:25:19 -05:00
LL | Self: Clone + Clone + Clone;
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
error: these bounds contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:60:24
|
2022-07-13 06:25:19 -05:00
LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
error: these where clauses contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:67:12
|
2022-07-13 06:25:19 -05:00
LL | T: Clone + Clone + Clone + Copy,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
error: these bounds contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:100:19
|
2022-07-13 06:25:19 -05:00
LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u64> + GenericTrait<u32>`
error: these bounds contain repeated elements
2022-07-13 06:25:19 -05:00
--> $DIR/trait_duplication_in_bounds.rs:108:22
|
2022-07-13 06:25:19 -05:00
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::clone::Clone + foo::Clone`
2022-07-13 06:25:19 -05:00
error: aborting due to 8 previous errors