1 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
2 --> $DIR/issue-89118.rs:19:8
5 | ^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
7 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
8 --> $DIR/issue-89118.rs:5:23
10 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
11 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^
13 | unsatisfied trait bound introduced here
14 note: required by a bound in `StackContext`
15 --> $DIR/issue-89118.rs:9:14
17 LL | trait StackContext
18 | ------------ required by a bound in this
20 LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
23 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
24 --> $DIR/issue-89118.rs:29:9
26 LL | impl<C> EthernetWorker<C> {}
27 | ^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
29 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
30 --> $DIR/issue-89118.rs:5:23
32 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
33 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^
35 | unsatisfied trait bound introduced here
36 note: required by a bound in `EthernetWorker`
37 --> $DIR/issue-89118.rs:28:14
39 LL | struct EthernetWorker<C>(C)
40 | -------------- required by a bound in this
42 LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker`
45 error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
46 --> $DIR/issue-89118.rs:22:20
48 LL | type Handler = Ctx<C::Dispatcher>;
49 | ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
51 note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
52 --> $DIR/issue-89118.rs:5:23
54 LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
55 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^
57 | unsatisfied trait bound introduced here
58 note: required by a bound in `StackContext`
59 --> $DIR/issue-89118.rs:9:14
61 LL | trait StackContext
62 | ------------ required by a bound in this
64 LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
67 error: aborting due to 3 previous errors
69 For more information about this error, try `rustc --explain E0277`.