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
+
1
10
error[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
3
12
|
4
13
LL | C: StackContext,
5
14
| ^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
@@ -19,7 +28,7 @@ LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
19
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
20
29
21
30
error[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
23
32
|
24
33
LL | type Handler = Ctx<C::Dispatcher>;
25
34
| ^^^^^^^^^^^^^^^^^^ the trait `for<'a> BufferMut` is not implemented for `&'a ()`
@@ -38,8 +47,17 @@ LL | where
38
47
LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>,
39
48
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StackContext`
40
49
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
+
41
59
error[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
43
61
|
44
62
LL | impl<C> EthernetWorker<C> {}
45
63
| ^^^^^^^^^^^^^^^^^ 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
50
68
LL | impl<B: BufferMut, C> BufferUdpStateContext<B> for C {}
51
69
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^
52
70
note: required by a bound in `EthernetWorker`
53
- --> $DIR/issue-89118.rs:28 :14
71
+ --> $DIR/issue-89118.rs:29 :14
54
72
|
55
73
LL | struct EthernetWorker<C>(C)
56
74
| -------------- required by a bound in this
57
75
LL | where
58
76
LL | Ctx<()>: for<'a> BufferUdpStateContext<&'a ()>;
59
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EthernetWorker`
60
78
61
- error: aborting due to 3 previous errors
79
+ error: aborting due to 3 previous errors; 2 warnings emitted
62
80
63
81
For more information about this error, try `rustc --explain E0277`.
0 commit comments