Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up.into_iter() doesn't work #10
Closed
Comments
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code:
Prints:
Expected:
This is probably because
into_iter()sets the length to0, and then only callsiter_mut(), therefore getting an iterator of length0.