File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed 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
@@ -370,7 +370,7 @@ LL | drop(x);
370
370
This warning will become a hard error in the future.
371
371
372
372
error[E0382]: use of moved value: `x`
373
- --> $DIR/borrowck-describe-lvalue.rs:318 :22
373
+ --> $DIR/borrowck-describe-lvalue.rs:317 :22
374
374
|
375
375
LL | drop(x);
376
376
| - value moved here
Original file line number Diff line number Diff line change 1
1
error[E0716]: temporary value dropped while borrowed
2
- --> $DIR/issue-36082.rs:23 :19
2
+ --> $DIR/issue-36082.rs:21 :19
3
3
|
4
4
LL | let val: &_ = x.borrow().0;
5
5
| ^^^^^^^^^^ - temporary value is freed at the end of this statement
You can’t perform that action at this time.
0 commit comments