Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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