Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. src/main.rs:242:59: 242:72 error: cannot borrow `channels_lock` as immutable because it is also borrowed as mutable [E0502]
  2. src/main.rs:242 channel = channels_lock.0.iter_mut().filter(|chan| {
  3. ^~~~~~~~~~~~~
  4. src/main.rs:242:59: 242:72 help: run `rustc --explain E0502` to see a detailed explanation
  5. src/main.rs:242:80: 242:93 error: cannot borrow `channels_lock` as immutable because it is also borrowed as mutable [E0502]
  6. src/main.rs:242 channel = channels_lock.0.iter_mut().filter(|chan| {
  7. ^~~~~~~~~~~~~
  8. src/main.rs:242:80: 242:93 help: run `rustc --explain E0502` to see a detailed explanation
  9. src/main.rs:244:35: 244:42 error: use of moved value: `channel` [E0382]
  10. src/main.rs:244 if channel.unwrap().get_name() == channels_lock.0.get((channels_lock.1).0).unwrap().get_name() {
  11. ^~~~~~~
  12. src/main.rs:244:35: 244:42 help: run `rustc --explain E0382` to see a detailed explanation
  13. src/main.rs:244:35: 244:42 note: move occurs because `channel` has type `std::option::Option<&mut Channel>`, which does not implement the `Copy` trait
  14. src/main.rs:245:47: 245:54 error: use of moved value: `channel` [E0382]
  15. src/main.rs:245 if channel.unwrap().get_name() == channels_lock.0.get((channels_lock.1).0).unwrap().get_name() {
  16. ^~~~~~~
  17. src/main.rs:245:47: 245:54 help: run `rustc --explain E0382` to see a detailed explanation
  18. src/main.rs:245:47: 245:54 note: move occurs because `channel` has type `std::option::Option<&mut Channel>`, which does not implement the `Copy` trait
  19. error: aborting due to 4 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement