Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
  2. warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
  3. --> src/lib.rs:179:25
  4. |
  5. 178 | if let Some(m) = self.usercmds.get(&vvv) {
  6. | ------------- immutable borrow occurs here
  7. 179 | self.eval_strings(&m.clone())
  8. | ^^^^ - immutable borrow later used here
  9. | |
  10. | mutable borrow occurs here
  11. |
  12. = note: #[warn(mutable_borrow_reservation_conflict)] on by default
  13. = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
  14. = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement