Skip to content

Commit

Permalink
FIXME(49824) remove fixme because there is no free region error anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nivkner committed Dec 19, 2018
1 parent 7092fca commit cc568e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/borrowck/borrowck-describe-lvalue.ast.stderr
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/test/ui/borrowck/borrowck-describe-lvalue.mir.stderr
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/borrowck/borrowck-describe-lvalue.rs
Expand Up @@ -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
Expand Down

0 comments on commit cc568e7

Please sign in to comment.