File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ LL | };
220
220
| - first borrow ends here
221
221
222
222
error[E0499]: cannot borrow `**x` as mutable more than once at a time
223
- --> $DIR/borrowck-describe-lvalue.rs:307 :25
223
+ --> $DIR/borrowck-describe-lvalue.rs:306 :25
224
224
|
225
225
LL | let y = &mut x;
226
226
| - first mutable borrow occurs here
@@ -231,7 +231,7 @@ LL | }
231
231
| - first borrow ends here
232
232
233
233
error[E0382]: use of moved value: `x`
234
- --> $DIR/borrowck-describe-lvalue.rs:318 :22
234
+ --> $DIR/borrowck-describe-lvalue.rs:317 :22
235
235
|
236
236
LL | drop(x);
237
237
| - value moved here
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ LL | *y = 1;
10
10
| ------ first borrow later used here
11
11
12
12
error[E0499]: cannot borrow `x` as mutable more than once at a time
13
- --> $DIR/borrowck-describe-lvalue.rs:307 :20
13
+ --> $DIR/borrowck-describe-lvalue.rs:306 :20
14
14
|
15
15
LL | let y = &mut x;
16
16
| ------ first mutable borrow occurs here
@@ -21,7 +21,7 @@ LL | *y = 1;
21
21
| ------ first borrow later used here
22
22
23
23
error: captured variable cannot escape `FnMut` closure body
24
- --> $DIR/borrowck-describe-lvalue.rs:305 :16
24
+ --> $DIR/borrowck-describe-lvalue.rs:304 :16
25
25
|
26
26
LL | || {
27
27
| - inferred to be a `FnMut` closure
@@ -362,7 +362,7 @@ LL | drop(x);
362
362
| - mutable borrow later used here
363
363
364
364
error[E0382]: use of moved value: `x`
365
- --> $DIR/borrowck-describe-lvalue.rs:318 :22
365
+ --> $DIR/borrowck-describe-lvalue.rs:317 :22
366
366
|
367
367
LL | drop(x);
368
368
| - value moved here
Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ fn main() {
299
299
}
300
300
// Field from upvar nested
301
301
{
302
- // FIXME(#49824) -- the free region error below should probably not be there
303
302
let mut x = 0 ;
304
303
|| {
305
304
|| { //[mir]~ ERROR captured variable cannot escape `FnMut` closure body
You can’t perform that action at this time.
0 commit comments