1+ warning: where-clause bound is impossible to satisfy
2+ --> $DIR/issue-89118.rs:9:5
3+ |
4+ LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: the bound `for<'a> Ctx<()>: BufferUdpStateContext<&'a ()>` was previously accepted, but it may become a hard error in a future release
8+ = help: add `#![feature(trivial_bounds)]` to the crate attributes to allow it
9+
110error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
2- --> $DIR/issue-89118.rs:19 :8
11+ --> $DIR/issue-89118.rs:20 :8
312 |
413LL | C: StackContext,
514 | ^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
@@ -19,7 +28,7 @@ LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
1928 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
2029
2130error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
22- --> $DIR/issue-89118.rs:22 :20
31+ --> $DIR/issue-89118.rs:23 :20
2332 |
2433LL | type Handler = Ctx<C::Dispatcher>;
2534 | ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
@@ -38,8 +47,17 @@ LL | where
3847LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
3948 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
4049
50+ warning: where-clause bound is impossible to satisfy
51+ --> $DIR/issue-89118.rs:29:5
52+ |
53+ LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
54+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55+ |
56+ = note: the bound `for<'a> Ctx<()>: BufferUdpStateContext<&'a ()>` was previously accepted, but it may become a hard error in a future release
57+ = help: add `#![feature(trivial_bounds)]` to the crate attributes to allow it
58+
4159error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
42- --> $DIR/issue-89118.rs:29 :9
60+ --> $DIR/issue-89118.rs:32 :9
4361 |
4462LL | impl<C> EthernetWorker<C> {}
4563 | ^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
@@ -50,14 +68,14 @@ note: required because of the requirements on the impl of `for<'a> BufferUdpStat
5068LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
5169 | ^^^^^^^^^^^^^^^^^^^^^^^^ ^
5270note: required by a bound in `EthernetWorker`
53- --> $DIR/issue-89118.rs:28 :14
71+ --> $DIR/issue-89118.rs:29 :14
5472 |
5573LL | struct EthernetWorker<C>(C)
5674 | -------------- required by a bound in this
5775LL | where
5876LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
5977 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker`
6078
61- error: aborting due to 3 previous errors
79+ error: aborting due to 3 previous errors; 2 warnings emitted
6280
6381For more information about this error, try `rustc --explain E0277`.
0 commit comments