Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 1.35 KB | None | 0 0
  1. do_auth_step(&client, email_uri, &res, &format!("{:?}", &res.body()).as_str(), client_email, client_passwd, &res.headers());
  2.  
  3.  
  4.  
  5.  
  6. -------------------
  7.  
  8.  
  9.  
  10.  
  11.    Compiling hangups v0.0.1 (file:///source)
  12. error[E0505]: cannot move out of `res` because it is borrowed
  13.    --> src/lib.rs:235:78
  14.     |
  15. 235 |                     do_auth_step(&client, email_uri, &res, &format!("{:?}", &res.body()).as_str(), client_email, client_passwd, &res.headers());
  16.     |                                                       ---                    ^^^ move out of `res` occurs here
  17.     |                                                       |
  18.     |                                                       borrow of `res` occurs here
  19.  
  20. error[E0382]: use of moved value: `res`
  21.    --> src/lib.rs:235:130
  22.     |
  23. 235 |                     do_auth_step(&client, email_uri, &res, &format!("{:?}", &res.body()).as_str(), client_email, client_passwd, &res.headers());
  24.     |                                                                              --- value moved here                                ^^^ value used here after move
  25.     |
  26.     = note: move occurs because `res` has type `hyper::client::Response`, which does not implement the `Copy` trait
  27.  
  28. error: aborting due to 2 previous errors
  29.  
  30. error: Could not compile `hangups`.
  31.  
  32. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement