FIXME(49821) remove fixme since a tip about let binding is given

This commit is contained in:
Niv Kaminer 2018-12-17 17:31:27 +02:00
parent 3773ae26a0
commit cf329d5978
3 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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() {