]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/trait_duplication_in_bounds.stderr
Rollup merge of #96557 - nbdd0121:const, r=oli-obk
[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:6: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:6: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:35: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:49: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:55: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:55: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:58: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:93: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:99:23
72    |
73 LL | fn impl_trait(_: impl AsRef<str>, _: impl AsRef<str>) {}
74    |                       ^^^^^^^^^^
75    |
76    = help: consider removing this trait bound
77
78 error: aborting due to 9 previous errors
79