summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/trait_duplication_in_bounds_unfixable.stderr
blob: fbd9abb005f1f1fdf069c3c96691c12964ff5d24 (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
error: this trait bound is already specified in the where clause
  --> $DIR/trait_duplication_in_bounds_unfixable.rs:6: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_unfixable.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_unfixable.rs:6: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_unfixable.rs:35: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_unfixable.rs:49: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_unfixable.rs:55: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_unfixable.rs:55: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_unfixable.rs:58: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_unfixable.rs:93:15
   |
LL |         Self: Iterator<Item = Foo>,
   |               ^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider removing this trait bound

error: aborting due to 8 previous errors