Skip to content

Instantly share code, notes, and snippets.

@gbersac
Last active October 13, 2017 10:08
Show Gist options
  • Save gbersac/5b667db2339b1dfef05b to your computer and use it in GitHub Desktop.
Save gbersac/5b667db2339b1dfef05b to your computer and use it in GitHub Desktop.
rust error while trying to change an iterator
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