1
1
warning: not reporting region error due to nll
2
- --> $DIR/projection-no-regions-closure.rs:36 :31
2
+ --> $DIR/projection-no-regions-closure.rs:35 :31
3
3
|
4
4
LL | with_signature(x, |mut y| Box::new(y.next()))
5
5
| ^^^^^^^^^^^^^^^^^^
6
6
7
7
warning: not reporting region error due to nll
8
- --> $DIR/projection-no-regions-closure.rs:54 :31
8
+ --> $DIR/projection-no-regions-closure.rs:53 :31
9
9
|
10
10
LL | with_signature(x, |mut y| Box::new(y.next()))
11
11
| ^^^^^^^^^^^^^^^^^^
12
12
13
13
note: External requirements
14
- --> $DIR/projection-no-regions-closure.rs:36 :23
14
+ --> $DIR/projection-no-regions-closure.rs:35 :23
15
15
|
16
16
LL | with_signature(x, |mut y| Box::new(y.next()))
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -26,15 +26,15 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
26
26
= note: where <T as std::iter::Iterator>::Item: '_#2r
27
27
28
28
error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
29
- --> $DIR/projection-no-regions-closure.rs:36 :23
29
+ --> $DIR/projection-no-regions-closure.rs:35 :23
30
30
|
31
31
LL | with_signature(x, |mut y| Box::new(y.next()))
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
33
33
|
34
34
= help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
35
35
36
36
note: No external requirements
37
- --> $DIR/projection-no-regions-closure.rs:32 :1
37
+ --> $DIR/projection-no-regions-closure.rs:31 :1
38
38
|
39
39
LL | / fn no_region<'a, T>(x: Box<T>) -> Box<dyn Anything + 'a>
40
40
LL | | where
@@ -51,7 +51,7 @@ LL | | }
51
51
]
52
52
53
53
note: External requirements
54
- --> $DIR/projection-no-regions-closure.rs:46 :23
54
+ --> $DIR/projection-no-regions-closure.rs:45 :23
55
55
|
56
56
LL | with_signature(x, |mut y| Box::new(y.next()))
57
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -66,7 +66,7 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
66
66
= note: where <T as std::iter::Iterator>::Item: '_#2r
67
67
68
68
note: No external requirements
69
- --> $DIR/projection-no-regions-closure.rs:42 :1
69
+ --> $DIR/projection-no-regions-closure.rs:41 :1
70
70
|
71
71
LL | / fn correct_region<'a, T>(x: Box<T>) -> Box<dyn Anything + 'a>
72
72
LL | | where
@@ -82,7 +82,7 @@ LL | | }
82
82
]
83
83
84
84
note: External requirements
85
- --> $DIR/projection-no-regions-closure.rs:54 :23
85
+ --> $DIR/projection-no-regions-closure.rs:53 :23
86
86
|
87
87
LL | with_signature(x, |mut y| Box::new(y.next()))
88
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -98,15 +98,15 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
98
98
= note: where <T as std::iter::Iterator>::Item: '_#3r
99
99
100
100
error[E0309]: the associated type `<T as std::iter::Iterator>::Item` may not live long enough
101
- --> $DIR/projection-no-regions-closure.rs:54 :23
101
+ --> $DIR/projection-no-regions-closure.rs:53 :23
102
102
|
103
103
LL | with_signature(x, |mut y| Box::new(y.next()))
104
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
105
105
|
106
106
= help: consider adding an explicit lifetime bound `<T as std::iter::Iterator>::Item: ReEarlyBound(0, 'a)`...
107
107
108
108
note: No external requirements
109
- --> $DIR/projection-no-regions-closure.rs:50 :1
109
+ --> $DIR/projection-no-regions-closure.rs:49 :1
110
110
|
111
111
LL | / fn wrong_region<'a, 'b, T>(x: Box<T>) -> Box<dyn Anything + 'a>
112
112
LL | | where
@@ -124,7 +124,7 @@ LL | | }
124
124
]
125
125
126
126
note: External requirements
127
- --> $DIR/projection-no-regions-closure.rs:65 :23
127
+ --> $DIR/projection-no-regions-closure.rs:64 :23
128
128
|
129
129
LL | with_signature(x, |mut y| Box::new(y.next()))
130
130
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -140,7 +140,7 @@ LL | with_signature(x, |mut y| Box::new(y.next()))
140
140
= note: where <T as std::iter::Iterator>::Item: '_#3r
141
141
142
142
note: No external requirements
143
- --> $DIR/projection-no-regions-closure.rs:60 :1
143
+ --> $DIR/projection-no-regions-closure.rs:59 :1
144
144
|
145
145
LL | / fn outlives_region<'a, 'b, T>(x: Box<T>) -> Box<dyn Anything + 'a>
146
146
LL | | where
0 commit comments