Skip to content

Instantly share code, notes, and snippets.

@drbawb
Created January 13, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drbawb/96d2d59dc03e46e27bc4 to your computer and use it in GitHub Desktop.
Save drbawb/96d2d59dc03e46e27bc4 to your computer and use it in GitHub Desktop.
use of moved value
/home/drbawb/projects/piper/kyrie/src/world/services.rs:128:33: 128:41 error: use of moved value: `pub_sock`
/home/drbawb/projects/piper/kyrie/src/world/services.rs:128 let peer = ServicePeer::new(pub_sock, uid.clone());
^~~~~~~~
/home/drbawb/projects/piper/kyrie/src/world/services.rs:128:33: 128:41 note: `pub_sock` moved here because it has type `zmq::Socket`, which is non-copyable
/home/drbawb/projects/piper/kyrie/src/world/services.rs:128 let peer = ServicePeer::new(pub_sock, uid.clone());
^~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment