File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11error[E0597]: borrowed value does not live long enough
2- --> $DIR/issue-36082.rs:23 :19
2+ --> $DIR/issue-36082.rs:21 :19
33 |
44LL | let val: &_ = x.borrow().0;
55 | ^^^^^^^^^^ - temporary value dropped here while still borrowed
Original file line number Diff line number Diff line change 11error[E0716]: temporary value dropped while borrowed
2- --> $DIR/issue-36082.rs:23 :19
2+ --> $DIR/issue-36082.rs:21 :19
33 |
44LL | let val: &_ = x.borrow().0;
55 | ^^^^^^^^^^ - temporary value is freed at the end of this statement
Original file line number Diff line number Diff line change 1111// revisions: ast mir
1212//[mir]compile-flags: -Z borrowck=mir
1313
14- // FIXME(#49821) -- No tip about using a let binding
15-
1614use std:: cell:: RefCell ;
1715
1816fn main ( ) {
You can’t perform that action at this time.
0 commit comments