]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `a` does not live long enough |
60c5eb7d | 2 | --> $DIR/issue-36537.rs:5:13 |
c30ab7b3 | 3 | | |
9ffffee4 FG |
4 | LL | let a = 42; |
5 | | - binding `a` declared here | |
94b46f34 | 6 | LL | p = &a; |
60c5eb7d | 7 | | ^^ borrowed value does not live long enough |
94b46f34 XL |
8 | ... |
9 | LL | } | |
10 | | - `a` dropped here while still borrowed | |
48663c56 | 11 | LL | p.use_ref(); |
add651ee | 12 | | - borrow later used here |
c30ab7b3 | 13 | |
041b39d2 | 14 | error: aborting due to previous error |
c30ab7b3 | 15 | |
0531ce1d | 16 | For more information about this error, try `rustc --explain E0597`. |