Skip to content

Instantly share code, notes, and snippets.

@simias
Last active August 29, 2015 14:19
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 simias/756db24070d79112a959 to your computer and use it in GitHub Desktop.
Save simias/756db24070d79112a959 to your computer and use it in GitHub Desktop.
src/main.rs:22:31: 22:35 error: cannot borrow `*self` as mutable more than once at a time
src/main.rs:22 while let Some(msg) = self.next_packet() {
^~~~
src/main.rs:22:31: 22:35 note: previous borrow of `*self` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `*self` until the borrow ends
src/main.rs:22 while let Some(msg) = self.next_packet() {
^~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment