FIXME(49824) remove fixme because there is no free region error anymore
This commit is contained in:
parent
7092fca984
commit
cc568e7be1
3 changed files with 5 additions and 6 deletions
|
|
@ -220,7 +220,7 @@ LL | };
|
|||
| - first borrow ends here
|
||||
|
||||
error[E0499]: cannot borrow `**x` as mutable more than once at a time
|
||||
--> $DIR/borrowck-describe-lvalue.rs:307:25
|
||||
--> $DIR/borrowck-describe-lvalue.rs:306:25
|
||||
|
|
||||
LL | let y = &mut x;
|
||||
| - first mutable borrow occurs here
|
||||
|
|
@ -231,7 +231,7 @@ LL | }
|
|||
| - first borrow ends here
|
||||
|
||||
error[E0382]: use of moved value: `x`
|
||||
--> $DIR/borrowck-describe-lvalue.rs:318:22
|
||||
--> $DIR/borrowck-describe-lvalue.rs:317:22
|
||||
|
|
||||
LL | drop(x);
|
||||
| - value moved here
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ LL | *y = 1;
|
|||
| ------ first borrow later used here
|
||||
|
||||
error[E0499]: cannot borrow `x` as mutable more than once at a time
|
||||
--> $DIR/borrowck-describe-lvalue.rs:307:20
|
||||
--> $DIR/borrowck-describe-lvalue.rs:306:20
|
||||
|
|
||||
LL | let y = &mut x;
|
||||
| ------ first mutable borrow occurs here
|
||||
|
|
@ -21,7 +21,7 @@ LL | *y = 1;
|
|||
| ------ first borrow later used here
|
||||
|
||||
error: captured variable cannot escape `FnMut` closure body
|
||||
--> $DIR/borrowck-describe-lvalue.rs:305:16
|
||||
--> $DIR/borrowck-describe-lvalue.rs:304:16
|
||||
|
|
||||
LL | || {
|
||||
| - inferred to be a `FnMut` closure
|
||||
|
|
@ -362,7 +362,7 @@ LL | drop(x);
|
|||
| - mutable borrow later used here
|
||||
|
||||
error[E0382]: use of moved value: `x`
|
||||
--> $DIR/borrowck-describe-lvalue.rs:318:22
|
||||
--> $DIR/borrowck-describe-lvalue.rs:317:22
|
||||
|
|
||||
LL | drop(x);
|
||||
| - value moved here
|
||||
|
|
|
|||
|
|
@ -299,7 +299,6 @@ fn main() {
|
|||
}
|
||||
// Field from upvar nested
|
||||
{
|
||||
// FIXME(#49824) -- the free region error below should probably not be there
|
||||
let mut x = 0;
|
||||
|| {
|
||||
|| { //[mir]~ ERROR captured variable cannot escape `FnMut` closure body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue