]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/trait_duplication_in_bounds.stderr
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
[rust.git] / src / tools / clippy / tests / ui / trait_duplication_in_bounds.stderr
1 error: this trait bound is already specified in the where clause
2   --> $DIR/trait_duplication_in_bounds.rs:7:15
3    |
4 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
5    |               ^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/trait_duplication_in_bounds.rs:1:9
9    |
10 LL | #![deny(clippy::trait_duplication_in_bounds)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = help: consider removing this trait bound
13
14 error: this trait bound is already specified in the where clause
15   --> $DIR/trait_duplication_in_bounds.rs:7:23
16    |
17 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
18    |                       ^^^^^^^
19    |
20    = help: consider removing this trait bound
21
22 error: this trait bound is already specified in trait declaration
23   --> $DIR/trait_duplication_in_bounds.rs:36:15
24    |
25 LL |         Self: Default;
26    |               ^^^^^^^
27    |
28    = help: consider removing this trait bound
29
30 error: this trait bound is already specified in trait declaration
31   --> $DIR/trait_duplication_in_bounds.rs:50:15
32    |
33 LL |         Self: Default + Clone;
34    |               ^^^^^^^
35    |
36    = help: consider removing this trait bound
37
38 error: this trait bound is already specified in trait declaration
39   --> $DIR/trait_duplication_in_bounds.rs:56:15
40    |
41 LL |         Self: Default + Clone;
42    |               ^^^^^^^
43    |
44    = help: consider removing this trait bound
45
46 error: this trait bound is already specified in trait declaration
47   --> $DIR/trait_duplication_in_bounds.rs:56:25
48    |
49 LL |         Self: Default + Clone;
50    |                         ^^^^^
51    |
52    = help: consider removing this trait bound
53
54 error: this trait bound is already specified in trait declaration
55   --> $DIR/trait_duplication_in_bounds.rs:59:15
56    |
57 LL |         Self: Default;
58    |               ^^^^^^^
59    |
60    = help: consider removing this trait bound
61
62 error: this trait bound is already specified in trait declaration
63   --> $DIR/trait_duplication_in_bounds.rs:94:15
64    |
65 LL |         Self: Iterator<Item = Foo>,
66    |               ^^^^^^^^^^^^^^^^^^^^
67    |
68    = help: consider removing this trait bound
69
70 error: this trait bound is already specified in the where clause
71   --> $DIR/trait_duplication_in_bounds.rs:103:19
72    |
73 LL |     fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
74    |                   ^^^^^
75    |
76    = help: consider removing this trait bound
77
78 error: these bounds contain repeated elements
79   --> $DIR/trait_duplication_in_bounds.rs:103:19
80    |
81 LL |     fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
82    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
83
84 error: this trait bound is already specified in the where clause
85   --> $DIR/trait_duplication_in_bounds.rs:109:12
86    |
87 LL |         T: Clone + Clone + Clone + Copy,
88    |            ^^^^^
89    |
90    = help: consider removing this trait bound
91
92 error: these where clauses contain repeated elements
93   --> $DIR/trait_duplication_in_bounds.rs:109:12
94    |
95 LL |         T: Clone + Clone + Clone + Copy,
96    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
97
98 error: these bounds contain repeated elements
99   --> $DIR/trait_duplication_in_bounds.rs:137:30
100    |
101 LL |     trait BadSelfTraitBound: Clone + Clone + Clone {
102    |                              ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
103
104 error: these where clauses contain repeated elements
105   --> $DIR/trait_duplication_in_bounds.rs:144:19
106    |
107 LL |             Self: Clone + Clone + Clone;
108    |                   ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
109
110 error: this trait bound is already specified in the where clause
111   --> $DIR/trait_duplication_in_bounds.rs:158:28
112    |
113 LL |     trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
114    |                            ^^^^^
115    |
116    = help: consider removing this trait bound
117
118 error: these bounds contain repeated elements
119   --> $DIR/trait_duplication_in_bounds.rs:158:28
120    |
121 LL |     trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
122    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
123
124 error: these where clauses contain repeated elements
125   --> $DIR/trait_duplication_in_bounds.rs:165:16
126    |
127 LL |             T: Clone + Clone + Clone + Copy,
128    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
129
130 error: this trait bound is already specified in the where clause
131   --> $DIR/trait_duplication_in_bounds.rs:195:24
132    |
133 LL |     fn good_generic<T: GenericTrait<u64> + GenericTrait<u32>>(arg0: T) {
134    |                        ^^^^^^^^^^^^^^^^^
135    |
136    = help: consider removing this trait bound
137
138 error: this trait bound is already specified in the where clause
139   --> $DIR/trait_duplication_in_bounds.rs:199:23
140    |
141 LL |     fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
142    |                       ^^^^^^^^^^^^^^^^^
143    |
144    = help: consider removing this trait bound
145
146 error: these bounds contain repeated elements
147   --> $DIR/trait_duplication_in_bounds.rs:199:23
148    |
149 LL |     fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
150    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u32> + GenericTrait<u64>`
151
152 error: this trait bound is already specified in the where clause
153   --> $DIR/trait_duplication_in_bounds.rs:207:26
154    |
155 LL |     fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
156    |                          ^^^^^^^^^^^^^^^^^
157    |
158    = help: consider removing this trait bound
159
160 error: these bounds contain repeated elements
161   --> $DIR/trait_duplication_in_bounds.rs:207:26
162    |
163 LL |     fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
164    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + foo::Clone`
165
166 error: aborting due to 22 previous errors
167