2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b` does not live long enough
|
2016-10-26 11:10:39 -05:00
|
|
|
--> $DIR/mut-ptr-cant-outlive-ref.rs:19:5
|
|
|
|
|
|
|
|
|
18 | p = &*b; //~ ERROR `b` does not live long enough
|
|
|
|
| - borrow occurs here
|
|
|
|
19 | }
|
|
|
|
| ^ `b` dropped here while still borrowed
|
|
|
|
20 | }
|
|
|
|
| - borrowed value needs to live until here
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2016-10-26 11:10:39 -05:00
|
|
|
|