Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. src/main.rs:93:28: 93:31 error: cannot borrow `*req` as mutable more than once at a time [E0499]
  2. src/main.rs:93 let cookie_jar = req.get_mut::<CookieJar>().unwrap();
  3. ^~~
  4. src/main.rs:93:28: 93:31 help: run `rustc --explain E0499` to see a detailed explanation
  5. src/main.rs:92:25: 92:28 note: previous borrow of `*req` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `*req` until the borrow ends
  6. src/main.rs:92 let mut cid = req.get_mut::<Cid>().unwrap();
  7. ^~~
  8. src/main.rs:110:8: 110:8 note: previous borrow ends here
  9. src/main.rs:91 fn before(&self, req: &mut Request) -> IronResult<()> {
  10. ...
  11. src/main.rs:110 }
  12. ^
  13. error: aborting due to previous error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement