2018-09-17 18:52:31 -05:00
|
|
|
error[E0713]: borrow may still be in use when destructor runs
|
|
|
|
--> $DIR/borrowck-ref-into-rvalue.rs:14:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-09-17 18:52:31 -05:00
|
|
|
LL | Some(ref m) => {
|
|
|
|
| ^^^^^
|
2018-04-10 17:38:35 -05:00
|
|
|
...
|
|
|
|
LL | }
|
2018-09-17 18:52:31 -05:00
|
|
|
| - drop of temporary value occurs here
|
2018-04-10 17:38:35 -05:00
|
|
|
LL | println!("{}", *msg);
|
|
|
|
| ---- borrow later used here
|
2018-09-09 13:43:46 -05:00
|
|
|
|
|
|
|
|
= note: consider using a `let` binding to create a longer lived value
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-09-17 18:52:31 -05:00
|
|
|
For more information about this error, try `rustc --explain E0713`.
|