Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
- warning: cannot borrow `*self` as mutable because it is also borrowed as immutable
- --> src/lib.rs:179:25
- |
- 178 | if let Some(m) = self.usercmds.get(&vvv) {
- | ------------- immutable borrow occurs here
- 179 | self.eval_strings(&m.clone())
- | ^^^^ - immutable borrow later used here
- | |
- | mutable borrow occurs here
- |
- = note: #[warn(mutable_borrow_reservation_conflict)] on by default
- = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
- = 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