summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr
blob: 70d700c1cc46068d48ac1e45ad7d9e58b225c589 (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
error: this type has already been used as a bound predicate
  --> $DIR/type_repetition_in_bounds.rs:8:5
   |
LL |     T: Clone,
   |     ^^^^^^^^
   |
   = help: consider combining the bounds: `T: Copy + Clone`
note: the lint level is defined here
  --> $DIR/type_repetition_in_bounds.rs:1:9
   |
LL | #![deny(clippy::type_repetition_in_bounds)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: this type has already been used as a bound predicate
  --> $DIR/type_repetition_in_bounds.rs:25:5
   |
LL |     Self: Copy + Default + Ord,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider combining the bounds: `Self: Clone + Copy + Default + Ord`

error: this type has already been used as a bound predicate
  --> $DIR/type_repetition_in_bounds.rs:85:5
   |
LL |     T: Clone,
   |     ^^^^^^^^
   |
   = help: consider combining the bounds: `T: ?Sized + Clone`

error: this type has already been used as a bound predicate
  --> $DIR/type_repetition_in_bounds.rs:90:5
   |
LL |     T: ?Sized,
   |     ^^^^^^^^^
   |
   = help: consider combining the bounds: `T: Clone + ?Sized`

error: aborting due to 4 previous errors