@@ -25,14 +25,6 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
25
25
= note: number of external vids: 4
26
26
= note: where <T as std::iter::Iterator>::Item: '_#2r
27
27
28
- error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
29
- --> $DIR/projection-no-regions-closure.rs:35:23
30
- |
31
- LL | with_signature(x, |mut y| Box::new(y.next()))
32
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
33
- |
34
- = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
35
-
36
28
note: No external requirements
37
29
--> $DIR/projection-no-regions-closure.rs:31:1
38
30
|
@@ -50,6 +42,14 @@ LL | | }
50
42
T
51
43
]
52
44
45
+ error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
46
+ --> $DIR/projection-no-regions-closure.rs:35:23
47
+ |
48
+ LL | with_signature(x, |mut y| Box::new(y.next()))
49
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
50
+ |
51
+ = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
52
+
53
53
note: External requirements
54
54
--> $DIR/projection-no-regions-closure.rs:45:23
55
55
|
@@ -97,14 +97,6 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
97
97
= note: number of external vids: 5
98
98
= note: where <T as std::iter::Iterator>::Item: '_#3r
99
99
100
- error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
101
- --> $DIR/projection-no-regions-closure.rs:53:23
102
- |
103
- LL | with_signature(x, |mut y| Box::new(y.next()))
104
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
105
- |
106
- = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
107
-
108
100
note: No external requirements
109
101
--> $DIR/projection-no-regions-closure.rs:49:1
110
102
|
@@ -123,6 +115,14 @@ LL | | }
123
115
T
124
116
]
125
117
118
+ error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
119
+ --> $DIR/projection-no-regions-closure.rs:53:23
120
+ |
121
+ LL | with_signature(x, |mut y| Box::new(y.next()))
122
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
123
+ |
124
+ = help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
125
+
126
126
note: External requirements
127
127
--> $DIR/projection-no-regions-closure.rs:64:23
128
128
|
0 commit comments