1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/issue-36082.rs:23:19
4 LL | let val: &_ = x.borrow().0;
5 | ^^^^^^^^^^ - temporary value only lives until here
7 | temporary value does not live long enough
9 LL | println!("{}", val);
10 | --- borrow later used here
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0597`.