]> git.proxmox.com Git - rustc.git/blame - src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / higher-rank-trait-bounds / normalize-under-binder / issue-89118.stderr
CommitLineData
c295e0f8
XL
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 |
f2b60f7d 7note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
c295e0f8
XL
8 --> $DIR/issue-89118.rs:5:23
9 |
10LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^^ ^
12note: required by a bound in `StackContext`
13 --> $DIR/issue-89118.rs:9:14
14 |
15LL | trait StackContext
16 | ------------ required by a bound in this
17LL | where
18LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
20
21error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
064997fb 22 --> $DIR/issue-89118.rs:29:9
c295e0f8 23 |
064997fb
FG
24LL | impl<C> EthernetWorker<C> {}
25 | ^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
c295e0f8 26 |
f2b60f7d 27note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
c295e0f8
XL
28 --> $DIR/issue-89118.rs:5:23
29 |
30LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
31 | ^^^^^^^^^^^^^^^^^^^^^^^^ ^
064997fb
FG
32note: required by a bound in `EthernetWorker`
33 --> $DIR/issue-89118.rs:28:14
c295e0f8 34 |
064997fb
FG
35LL | struct EthernetWorker<C>(C)
36 | -------------- required by a bound in this
c295e0f8 37LL | where
064997fb
FG
38LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker`
c295e0f8
XL
40
41error[E0277]: the trait bound `for<'a> &'a (): BufferMut` is not satisfied
064997fb 42 --> $DIR/issue-89118.rs:22:20
c295e0f8 43 |
064997fb
FG
44LL | type Handler = Ctx<C::Dispatcher>;
45 | ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
c295e0f8 46 |
f2b60f7d 47note: required for `Ctx<()>` to implement `for<'a> BufferUdpStateContext<&'a ()>`
c295e0f8
XL
48 --> $DIR/issue-89118.rs:5:23
49 |
50LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
51 | ^^^^^^^^^^^^^^^^^^^^^^^^ ^
064997fb
FG
52note: required by a bound in `StackContext`
53 --> $DIR/issue-89118.rs:9:14
c295e0f8 54 |
064997fb
FG
55LL | trait StackContext
56 | ------------ required by a bound in this
c295e0f8 57LL | where
064997fb
FG
58LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
c295e0f8
XL
60
61error: aborting due to 3 previous errors
62
63For more information about this error, try `rustc --explain E0277`.