summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/trait_duplication_in_bounds.stderr
blob: 7ef04e52708f4c91e16c67c6dddf6cc786779c9b (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:7:15
   |
LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
   |               ^^^^^
   |
note: the lint level is defined here
  --> $DIR/trait_duplication_in_bounds.rs:1:9
   |
LL | #![deny(clippy::trait_duplication_in_bounds)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: consider removing this trait bound

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:7:23
   |
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
  --> $DIR/trait_duplication_in_bounds.rs:36:15
   |
LL |         Self: Default;
   |               ^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in trait declaration
  --> $DIR/trait_duplication_in_bounds.rs:50:15
   |
LL |         Self: Default + Clone;
   |               ^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in trait declaration
  --> $DIR/trait_duplication_in_bounds.rs:56:15
   |
LL |         Self: Default + Clone;
   |               ^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in trait declaration
  --> $DIR/trait_duplication_in_bounds.rs:56:25
   |
LL |         Self: Default + Clone;
   |                         ^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in trait declaration
  --> $DIR/trait_duplication_in_bounds.rs:59:15
   |
LL |         Self: Default;
   |               ^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in trait declaration
  --> $DIR/trait_duplication_in_bounds.rs:94:15
   |
LL |         Self: Iterator<Item = Foo>,
   |               ^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:103:19
   |
LL |     fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
   |                   ^^^^^
   |
   = help: consider removing this trait bound

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:103:19
   |
LL |     fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:109:12
   |
LL |         T: Clone + Clone + Clone + Copy,
   |            ^^^^^
   |
   = help: consider removing this trait bound

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

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

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

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:158:28
   |
LL |     trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
   |                            ^^^^^
   |
   = help: consider removing this trait bound

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:158:28
   |
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:165:16
   |
LL |             T: Clone + Clone + Clone + Copy,
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:195:24
   |
LL |     fn good_generic<T: GenericTrait<u64> + GenericTrait<u32>>(arg0: T) {
   |                        ^^^^^^^^^^^^^^^^^
   |
   = help: consider removing this trait bound

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:199:23
   |
LL |     fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
   |                       ^^^^^^^^^^^^^^^^^
   |
   = help: consider removing this trait bound

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:199:23
   |
LL |     fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u32> + GenericTrait<u64>`

error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds.rs:207:26
   |
LL |     fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
   |                          ^^^^^^^^^^^^^^^^^
   |
   = help: consider removing this trait bound

error: these bounds contain repeated elements
  --> $DIR/trait_duplication_in_bounds.rs:207:26
   |
LL |     fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + foo::Clone`

error: aborting due to 22 previous errors