File: track-obligations.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (63 lines) | stat: -rw-r--r-- 2,420 bytes parent folder | download | duplicates (3)
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
error[E0599]: the method `check` exists for struct `Client<()>`, but its trait bounds were not satisfied
  --> $DIR/track-obligations.rs:83:16
   |
LL | struct ALayer<C>(C);
   | ---------------- doesn't satisfy `ALayer<()>: ParticularServiceLayer<()>`
...
LL | struct AService;
   | --------------- doesn't satisfy `<AService as Service<Req>>::Response = Res`
...
LL | struct Client<C>(C);
   | ---------------- method `check` not found for this struct
...
LL |     Client(()).check();
   |                ^^^^^ method cannot be called on `Client<()>` due to unsatisfied trait bounds
   |
note: trait bound `<AService as Service<Req>>::Response = Res` was not satisfied
  --> $DIR/track-obligations.rs:24:21
   |
LL | impl<T> ParticularService for T
   |         -----------------     -
LL | where
LL |     T: Service<Req, Response = Res>,
   |                     ^^^^^^^^^^^^^^ unsatisfied trait bound introduced here

error[E0271]: type mismatch resolving `<AService as Service<Req>>::Response == Res`
  --> $DIR/track-obligations.rs:87:11
   |
LL |     check(());
   |     ----- ^^ type mismatch resolving `<AService as Service<Req>>::Response == Res`
   |     |
   |     required by a bound introduced by this call
   |
note: expected this to be `Res`
  --> $DIR/track-obligations.rs:60:21
   |
LL |     type Response = bool;
   |                     ^^^^
note: required for `AService` to implement `ParticularService`
  --> $DIR/track-obligations.rs:22:9
   |
LL | impl<T> ParticularService for T
   |         ^^^^^^^^^^^^^^^^^     ^
LL | where
LL |     T: Service<Req, Response = Res>,
   |                     -------------- unsatisfied trait bound introduced here
note: required for `ALayer<_>` to implement `ParticularServiceLayer<_>`
  --> $DIR/track-obligations.rs:40:12
   |
LL | impl<T, C> ParticularServiceLayer<C> for T
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^     ^
...
LL |     T::Service: ParticularService,
   |                 ----------------- unsatisfied trait bound introduced here
note: required by a bound in `check`
  --> $DIR/track-obligations.rs:76:36
   |
LL | fn check<C>(_: C) where ALayer<C>: ParticularServiceLayer<C> {}
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0271, E0599.
For more information about an error, try `rustc --explain E0271`.