]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/borrowck-ref-into-rvalue.stderr
Auto merge of #56951 - oli-obk:auto_toolstate_issue, r=kennytm
[rust.git] / src / test / ui / span / borrowck-ref-into-rvalue.stderr
1 error[E0597]: borrowed value does not live long enough
2   --> $DIR/borrowck-ref-into-rvalue.rs:4:14
3    |
4 LL |         Some(ref m) => {
5    |              ^^^^^ borrowed value does not live long enough
6 ...
7 LL |     }
8    |     - borrowed value dropped here while still borrowed
9 LL |     println!("{}", *msg);
10 LL | }
11    | - borrowed value needs to live until here
12    |
13    = note: consider using a `let` binding to increase its lifetime
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0597`.