1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/borrowck-ref-into-rvalue.rs:4:14
5 | ^^^^^ borrowed value does not live long enough
8 | - borrowed value dropped here while still borrowed
9 LL | println!("{}", *msg);
11 | - borrowed value needs to live until here
13 = note: consider using a `let` binding to increase its lifetime
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0597`.