]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | error[E0597]: `b` does not live long enough |
2 | --> $DIR/mut-ptr-cant-outlive-ref.rs:18:15 | |
83c7162d | 3 | | |
94b46f34 XL |
4 | LL | p = &*b; |
5 | | ^ borrowed value does not live long enough | |
6 | LL | } | |
7 | | - borrowed value only lives until here | |
8 | LL | //~^^ ERROR `b` does not live long enough | |
9 | LL | p.use_ref(); | |
10 | | - borrow later used here | |
83c7162d XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
94b46f34 | 14 | For more information about this error, try `rustc --explain E0597`. |