2 use std::cell::RefCell;
7 let x = RefCell::new((&mut r,s));
9 let binding = x.borrow();
10 let val: &_ = binding.0;
11 //~^ ERROR temporary value dropped while borrowed [E0716]
12 //~| NOTE temporary value is freed at the end of this statement
13 //~| NOTE creates a temporary value which is freed while still in use
14 //~| HELP consider using a `let` binding to create a longer lived value
16 //~^ borrow later used here