]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait_duplication_in_bounds.stderr
removing unsafe from test fn's && renaming shrink to sugg_span
[rust.git] / 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:5: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:5: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:34: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:48: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:54: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:54: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:57:15
56    |
57 LL |         Self: Default;
58    |               ^^^^^^^
59    |
60    = help: consider removing this trait bound
61
62 error: aborting due to 7 previous errors
63