Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Created April 14, 2014 17:54
Show Gist options
  • Select an option

  • Save Leonidas-from-XIV/10669376 to your computer and use it in GitHub Desktop.

Select an option

Save Leonidas-from-XIV/10669376 to your computer and use it in GitHub Desktop.
sort.rs:179:5: 179:16 error: use of moved value: `write_cache`
sort.rs:179 write_cache.push(number);
^~~~~~~~~~~
sort.rs:181:31: 181:42 note: `write_cache` moved here because it has type `std::vec::Vec<u64>`, which is non-copyable (perhaps you meant to use clone()?)
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
sort.rs:180:8: 180:19 error: use of moved value: `write_cache`
sort.rs:180 if write_cache.len() >= items_per_run {
^~~~~~~~~~~
sort.rs:181:31: 181:42 note: `write_cache` moved here because it has type `std::vec::Vec<u64>`, which is non-copyable (perhaps you meant to use clone()?)
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
sort.rs:181:31: 181:42 error: use of moved value: `write_cache`
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
sort.rs:181:31: 181:42 note: `write_cache` moved here because it has type `std::vec::Vec<u64>`, which is non-copyable (perhaps you meant to use clone()?)
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
sort.rs:182:6: 182:17 error: use of moved value: `write_cache`
sort.rs:182 write_cache.clear();
^~~~~~~~~~~
sort.rs:181:31: 181:42 note: `write_cache` moved here because it has type `std::vec::Vec<u64>`, which is non-copyable (perhaps you meant to use clone()?)
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
sort.rs:185:37: 185:48 error: use of moved value: `write_cache`
sort.rs:185 None => write_u64(&mut fdOutput, write_cache),
^~~~~~~~~~~
sort.rs:181:31: 181:42 note: `write_cache` moved here because it has type `std::vec::Vec<u64>`, which is non-copyable (perhaps you meant to use clone()?)
sort.rs:181 write_u64(&mut fdOutput, write_cache);
^~~~~~~~~~~
error: aborting due to 5 previous errors
fn write_u64(to: &mut File, items: Vec<u64>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment