FIXME(49821) remove fixme since a tip about let binding is given
This commit is contained in:
parent
3773ae26a0
commit
cf329d5978
3 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
error[E0597]: borrowed value does not live long enough
|
||||
--> $DIR/issue-36082.rs:23:19
|
||||
--> $DIR/issue-36082.rs:21:19
|
||||
|
|
||||
LL | let val: &_ = x.borrow().0;
|
||||
| ^^^^^^^^^^ - temporary value dropped here while still borrowed
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0716]: temporary value dropped while borrowed
|
||||
--> $DIR/issue-36082.rs:23:19
|
||||
--> $DIR/issue-36082.rs:21:19
|
||||
|
|
||||
LL | let val: &_ = x.borrow().0;
|
||||
| ^^^^^^^^^^ - temporary value is freed at the end of this statement
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
// revisions: ast mir
|
||||
//[mir]compile-flags: -Z borrowck=mir
|
||||
|
||||
// FIXME(#49821) -- No tip about using a let binding
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue