]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / higher-rank-trait-bounds / normalize-under-binder / issue-89118.stderr
1 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
2   --> $DIR/issue-89118.rs:19:8
3    |
4 LL |     C: StackContext,
5    |        ^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
6    |
7 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
8   --> $DIR/issue-89118.rs:5:23
9    |
10 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
11    |         ---------     ^^^^^^^^^^^^^^^^^^^^^^^^     ^
12    |         |
13    |         unsatisfied trait bound introduced here
14 note: required by a bound in `StackContext`
15   --> $DIR/issue-89118.rs:9:14
16    |
17 LL | trait StackContext
18    |       ------------ required by a bound in this
19 LL | where
20 LL |     Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
21    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
22
23 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
24   --> $DIR/issue-89118.rs:29:9
25    |
26 LL | impl<C> EthernetWorker<C> {}
27    |         ^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
28    |
29 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
30   --> $DIR/issue-89118.rs:5:23
31    |
32 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
33    |         ---------     ^^^^^^^^^^^^^^^^^^^^^^^^     ^
34    |         |
35    |         unsatisfied trait bound introduced here
36 note: required by a bound in `EthernetWorker`
37   --> $DIR/issue-89118.rs:28:14
38    |
39 LL | struct EthernetWorker<C>(C)
40    |        -------------- required by a bound in this
41 LL | where
42 LL |     Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
43    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker`
44
45 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
46   --> $DIR/issue-89118.rs:22:20
47    |
48 LL |     type Handler = Ctx<C::Dispatcher>;
49    |                    ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
50    |
51 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
52   --> $DIR/issue-89118.rs:5:23
53    |
54 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
55    |         ---------     ^^^^^^^^^^^^^^^^^^^^^^^^     ^
56    |         |
57    |         unsatisfied trait bound introduced here
58 note: required by a bound in `StackContext`
59   --> $DIR/issue-89118.rs:9:14
60    |
61 LL | trait StackContext
62    |       ------------ required by a bound in this
63 LL | where
64 LL |     Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
65    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
66
67 error: aborting due to 3 previous errors
68
69 For more information about this error, try `rustc --explain E0277`.