summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/trait_duplication_in_bounds.stderr
blob: af800ba78880c39ed5e5b936c850e5138f993c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:5:15
   |
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
  --> $DIR/trait_duplication_in_bounds.rs:2:9
   |
LL | #![deny(clippy::trait_duplication_in_bounds)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: these where clauses contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:11:8
   |
LL |     T: Clone + Clone + Clone + Copy,
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:39:26
   |
LL | trait BadSelfTraitBound: Clone + Clone + Clone {
   |                          ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`

error: these where clauses contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:46:15
   |
LL |         Self: Clone + Clone + Clone;
   |               ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:60:24
   |
LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these where clauses contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:67:12
   |
LL |         T: Clone + Clone + Clone + Copy,
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:100:19
   |
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
  --> $DIR/trait_duplication_in_bounds.rs:108:22
   |
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::clone::Clone + foo::Clone`

error: aborting due to 8 previous errors