Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0597]: `x` does not live long enough
- --> src/main.rs:62:14
- |
- 62 | r = &x;
- | ^ borrowed value does not live long enough
- 63 | }
- | - `x` dropped here while still borrowed
- 64 | assert_eq!(*r, 0);
- 65 | }
- | - borrowed value needs to live until here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement