You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note: associated type defined here, with 1 lifetime parameter: `'a`
8
8
--> $DIR/issue-79422.rs:20:10
9
9
|
10
-
LL | type VRefCont<'a>: RefCont<'a, V>;
10
+
LL | type VRefCont<'a>: RefCont<'a, V> where Self: 'a;
11
11
| ^^^^^^^^ --
12
12
help: add missing lifetime argument
13
13
|
@@ -25,7 +25,7 @@ note: for a trait to be "object safe" it needs to allow building a vtable to all
25
25
|
26
26
LL | trait MapLike<K, V> {
27
27
| ------- this trait cannot be made into an object...
28
-
LL | type VRefCont<'a>: RefCont<'a, V>;
28
+
LL | type VRefCont<'a>: RefCont<'a, V> where Self: 'a;
29
29
| ^^^^^^^^ ...because it contains the generic associated type `VRefCont`
30
30
= help: consider moving `VRefCont` to another trait
31
31
@@ -40,7 +40,7 @@ note: for a trait to be "object safe" it needs to allow building a vtable to all
40
40
|
41
41
LL | trait MapLike<K, V> {
42
42
| ------- this trait cannot be made into an object...
43
-
LL | type VRefCont<'a>: RefCont<'a, V>;
43
+
LL | type VRefCont<'a>: RefCont<'a, V> where Self: 'a;
44
44
| ^^^^^^^^ ...because it contains the generic associated type `VRefCont`
45
45
= help: consider moving `VRefCont` to another trait
46
46
= note: required because of the requirements on the impl of `CoerceUnsized<Box<dyn MapLike<u8, u8, VRefCont = (dyn RefCont<'_, u8> + 'static)>>>` for `Box<BTreeMap<u8, u8>>`
0 commit comments