Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let mut s = String::from("hello world");
- let letter = s.get(0..1).unwrap();
- // this is dropped on the spot
- s.get(0..1).unwrap();
- s.clear();
- // letter dropped here NLL or not
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement