@@ -23,16 +23,19 @@ 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
34
|
35
- = help: consider adding an explicit lifetime bound `<T as Anything<'?5, '?6>>::AssocType: 'a`...
35
+ help: consider adding an explicit lifetime bound
36
+ |
37
+ LL | T: Anything<'b, 'c>, <T as Anything<'b/#0, 'c/#1>>::AssocType: 'a
38
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36
39
37
40
note: external requirements
38
41
--> $DIR/projection-two-region-trait-bound-closure.rs:48:29
@@ -59,16 +62,19 @@ LL | | 'a: 'a,
59
62
|
60
63
= note: defining type: no_relationships_early::<'?1, '?2, '?3, T>
61
64
62
- error[E0309]: the associated type `<T as Anything<'?6 , '?7 >>::AssocType` may not live long enough
65
+ error[E0309]: the associated type `<T as Anything<'b/#1 , 'c/#2 >>::AssocType` may not live long enough
63
66
--> $DIR/projection-two-region-trait-bound-closure.rs:48:39
64
67
|
65
68
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...
69
+ | -- the associated type `<T as Anything<'b/#1 , 'c/#2 >>::AssocType` must be valid for the lifetime `'a` as defined here...
67
70
...
68
71
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
72
+ | ^^^^^^^^^^^^^^^^ ...so that the type `<T as Anything<'b/#1, 'c/#2>>::AssocType` will meet its required lifetime bounds
73
+ |
74
+ help: consider adding an explicit lifetime bound
70
75
|
71
- = help: consider adding an explicit lifetime bound `<T as Anything<'?6, '?7>>::AssocType: 'a`...
76
+ LL | 'a: 'a, <T as Anything<'b/#1, 'c/#2>>::AssocType: 'a
77
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72
78
73
79
note: external requirements
74
80
--> $DIR/projection-two-region-trait-bound-closure.rs:61:29
0 commit comments