@@ -23,16 +23,20 @@ LL | | T: Anything<'b, 'c>,
23
23
|
24
24
= note: defining type: no_relationships_late::<'?1, '?2, T>
25
25
26
- error[E0309]: the associated type `<T as Anything<'?5 , '?6 >>::AssocType` may not live long enough
26
+ error[E0309]: the associated type `<T as Anything<'b/#0 , 'c/#1 >>::AssocType` may not live long enough
27
27
--> $DIR/projection-two-region-trait-bound-closure.rs:38:39
28
28
|
29
29
LL | fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
30
- | -- the associated type `<T as Anything<'?5 , '?6 >>::AssocType` must be valid for the lifetime `'a` as defined here...
30
+ | -- the associated type `<T as Anything<'b/#0 , 'c/#1 >>::AssocType` must be valid for the lifetime `'a` as defined here...
31
31
...
32
32
LL | with_signature(cell, t, |cell, t| require(cell, t));
33
- | ^^^^^^^^^^^^^^^^ ...so that the type `<T as Anything<'?5, '?6>>::AssocType` will meet its required lifetime bounds
33
+ | ^^^^^^^^^^^^^^^^ ...so that the type `<T as Anything<'b/#0, 'c/#1>>::AssocType` will meet its required lifetime bounds
34
+ |
35
+ help: consider adding an explicit lifetime bound
36
+ |
37
+ LL - T: Anything<'b, 'c>,
38
+ LL + T: Anything<'b, 'c>, <T as Anything<'b/#0, 'c/#1>>::AssocType: 'a
34
39
|
35
- = help: consider adding an explicit lifetime bound `<T as Anything<'?5, '?6>>::AssocType: 'a`...
36
40
37
41
note: external requirements
38
42
--> $DIR/projection-two-region-trait-bound-closure.rs:48:29
@@ -59,16 +63,20 @@ LL | | 'a: 'a,
59
63
|
60
64
= note: defining type: no_relationships_early::<'?1, '?2, '?3, T>
61
65
62
- error[E0309]: the associated type `<T as Anything<'?6 , '?7 >>::AssocType` may not live long enough
66
+ error[E0309]: the associated type `<T as Anything<'b/#1 , 'c/#2 >>::AssocType` may not live long enough
63
67
--> $DIR/projection-two-region-trait-bound-closure.rs:48:39
64
68
|
65
69
LL | fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
66
- | -- the associated type `<T as Anything<'?6 , '?7 >>::AssocType` must be valid for the lifetime `'a` as defined here...
70
+ | -- the associated type `<T as Anything<'b/#1 , 'c/#2 >>::AssocType` must be valid for the lifetime `'a` as defined here...
67
71
...
68
72
LL | with_signature(cell, t, |cell, t| require(cell, t));
69
- | ^^^^^^^^^^^^^^^^ ...so that the type `<T as Anything<'?6, '?7>>::AssocType` will meet its required lifetime bounds
73
+ | ^^^^^^^^^^^^^^^^ ...so that the type `<T as Anything<'b/#1, 'c/#2>>::AssocType` will meet its required lifetime bounds
74
+ |
75
+ help: consider adding an explicit lifetime bound
76
+ |
77
+ LL - 'a: 'a,
78
+ LL + 'a: 'a, <T as Anything<'b/#1, 'c/#2>>::AssocType: 'a
70
79
|
71
- = help: consider adding an explicit lifetime bound `<T as Anything<'?6, '?7>>::AssocType: 'a`...
72
80
73
81
note: external requirements
74
82
--> $DIR/projection-two-region-trait-bound-closure.rs:61:29
0 commit comments