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 | };
220220 | - first borrow ends here
221221
222222error[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
224224 |
225225LL | let y = &mut x;
226226 | - first mutable borrow occurs here
@@ -231,7 +231,7 @@ LL | }
231231 | - first borrow ends here
232232
233233error[E0382]: use of moved value: `x`
234- --> $DIR/borrowck-describe-lvalue.rs:318 :22
234+ --> $DIR/borrowck-describe-lvalue.rs:317 :22
235235 |
236236LL | drop(x);
237237 | - value moved here
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ LL | *y = 1;
1010 | ------ first borrow later used here
1111
1212error[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
1414 |
1515LL | let y = &mut x;
1616 | ------ first mutable borrow occurs here
@@ -21,7 +21,7 @@ LL | *y = 1;
2121 | ------ first borrow later used here
2222
2323error: captured variable cannot escape `FnMut` closure body
24- --> $DIR/borrowck-describe-lvalue.rs:305 :16
24+ --> $DIR/borrowck-describe-lvalue.rs:304 :16
2525 |
2626LL | || {
2727 | - inferred to be a `FnMut` closure
@@ -362,7 +362,7 @@ LL | drop(x);
362362 | - mutable borrow later used here
363363
364364error[E0382]: use of moved value: `x`
365- --> $DIR/borrowck-describe-lvalue.rs:318 :22
365+ --> $DIR/borrowck-describe-lvalue.rs:317 :22
366366 |
367367LL | drop(x);
368368 | - value moved here
Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ fn main() {
299299 }
300300 // Field from upvar nested
301301 {
302- // FIXME(#49824) -- the free region error below should probably not be there
303302 let mut x = 0 ;
304303 || {
305304 || { //[mir]~ ERROR captured variable cannot escape `FnMut` closure body
You can’t perform that action at this time.
0 commit comments