rust/src/test/ui/span/mut-ptr-cant-outlive-ref.stderr

13 lines
349 B
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: `b` does not live long enough
--> $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
error: aborting due to previous error