fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied 2 --> $DIR/issue-89118.rs:19:8 3 | 4LL | C: StackContext, 5 | ^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()` 6 | 7help: this trait has no implementations, consider adding one 8 --> $DIR/issue-89118.rs:1:1 9 | 10LL | trait BufferMut {} 11 | ^^^^^^^^^^^^^^^ 12note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>` 13 --> $DIR/issue-89118.rs:5:23 14 | 15LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {} 16 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^ 17 | | 18 | unsatisfied trait bound introduced here 19note: required by a bound in `StackContext` 20 --> $DIR/issue-89118.rs:9:14 21 | 22LL | trait StackContext 23 | ------------ required by a bound in this trait 24LL | where 25LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>, 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext` 27 28error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied 29 --> $DIR/issue-89118.rs:29:9 30 | 31LL | impl<C> EthernetWorker<C> {} 32 | ^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()` 33 | 34help: this trait has no implementations, consider adding one 35 --> $DIR/issue-89118.rs:1:1 36 | 37LL | trait BufferMut {} 38 | ^^^^^^^^^^^^^^^ 39note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>` 40 --> $DIR/issue-89118.rs:5:23 41 | 42LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {} 43 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^ 44 | | 45 | unsatisfied trait bound introduced here 46note: required by a bound in `EthernetWorker` 47 --> $DIR/issue-89118.rs:28:14 48 | 49LL | struct EthernetWorker<C>(C) 50 | -------------- required by a bound in this struct 51LL | where 52LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>; 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker` 54 55error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied 56 --> $DIR/issue-89118.rs:22:20 57 | 58LL | type Handler = Ctx<C::Dispatcher>; 59 | ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()` 60 | 61help: this trait has no implementations, consider adding one 62 --> $DIR/issue-89118.rs:1:1 63 | 64LL | trait BufferMut {} 65 | ^^^^^^^^^^^^^^^ 66note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>` 67 --> $DIR/issue-89118.rs:5:23 68 | 69LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {} 70 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^ 71 | | 72 | unsatisfied trait bound introduced here 73note: required by a bound in `StackContext` 74 --> $DIR/issue-89118.rs:9:14 75 | 76LL | trait StackContext 77 | ------------ required by a bound in this trait 78LL | where 79LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>, 80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext` 81 82error: aborting due to 3 previous errors 83 84For more information about this error, try `rustc --explain E0277`.