about summary refs log tree commit diff
path: root/tests/ui/coherence/fuzzing/best-obligation-ICE.stderr
blob: dedc895104162ae77446c5104b638ca31b8d15ee (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
72
73
74
75
76
77
78
79
error[E0046]: not all trait items implemented, missing: `Assoc`
  --> $DIR/best-obligation-ICE.rs:10:1
   |
LL |     type Assoc;
   |     ---------- `Assoc` from trait
...
LL | impl<T> Trait for W<W<W<T>>> {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Assoc` in implementation

error[E0277]: the trait bound `W<W<T>>: Trait` is not satisfied
  --> $DIR/best-obligation-ICE.rs:10:19
   |
LL | impl<T> Trait for W<W<W<T>>> {}
   |                   ^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Trait` is not implemented for `W<W<T>>`
  --> $DIR/best-obligation-ICE.rs:9:1
   |
LL | struct W<T: Trait>(*mut T);
   | ^^^^^^^^^^^^^^^^^^
note: required by a bound in `W`
  --> $DIR/best-obligation-ICE.rs:9:13
   |
LL | struct W<T: Trait>(*mut T);
   |             ^^^^^ required by this bound in `W`
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
   |
LL | impl<T> Trait for W<W<W<T>>> where W<W<T>>: Trait {}
   |                              ++++++++++++++++++++

error[E0277]: the trait bound `W<T>: Trait` is not satisfied
  --> $DIR/best-obligation-ICE.rs:10:19
   |
LL | impl<T> Trait for W<W<W<T>>> {}
   |                   ^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Trait` is not implemented for `W<T>`
  --> $DIR/best-obligation-ICE.rs:9:1
   |
LL | struct W<T: Trait>(*mut T);
   | ^^^^^^^^^^^^^^^^^^
note: required by a bound in `W`
  --> $DIR/best-obligation-ICE.rs:9:13
   |
LL | struct W<T: Trait>(*mut T);
   |             ^^^^^ required by this bound in `W`
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
   |
LL | impl<T> Trait for W<W<W<T>>> where W<T>: Trait {}
   |                              +++++++++++++++++

error[E0277]: the trait bound `T: Trait` is not satisfied
  --> $DIR/best-obligation-ICE.rs:10:19
   |
LL | impl<T> Trait for W<W<W<T>>> {}
   |                   ^^^^^^^^^^ the trait `Trait` is not implemented for `T`
   |
note: required by a bound in `W`
  --> $DIR/best-obligation-ICE.rs:9:13
   |
LL | struct W<T: Trait>(*mut T);
   |             ^^^^^ required by this bound in `W`
help: consider restricting type parameter `T` with trait `Trait`
   |
LL | impl<T: Trait> Trait for W<W<W<T>>> {}
   |       +++++++

error[E0119]: conflicting implementations of trait `NoOverlap` for type `W<W<W<W<_>>>>`
  --> $DIR/best-obligation-ICE.rs:18:1
   |
LL | impl<T: Trait> NoOverlap for T {}
   | ------------------------------ first implementation here
LL | impl<T: Trait<Assoc = u32>> NoOverlap for W<T> {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `W<W<W<W<_>>>>`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0046, E0119, E0277.
For more information about an error, try `rustc --explain E0046`.