Last active
October 13, 2017 10:08
-
-
Save gbersac/5b667db2339b1dfef05b to your computer and use it in GitHub Desktop.
rust error while trying to change an iterator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let my_vector = Vec<i32>::new(); | |
for it in my_vector{ | |
it.a = 100; // error: error: use of moved value: `to_return` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment