Guest User

error.log

a guest
Jan 14th, 2020
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [INFO]: Installing wasm-bindgen...
  2. [INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
  3. [INFO]: :-) Done in 0.15s
  4. [INFO]: :-) Your wasm pkg is ready to publish at client/pkg.
  5. [cargo-make] INFO - Running Task: build_server
  6. [cargo-make] INFO - Execute Command: "cargo" "build" "--package" "server"
  7.    Compiling server v0.1.0 (/home/winfield/Developer/memorsa/auth/server)
  8. error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
  9.   --> server/src/db.rs:23:27
  10.    |
  11. 23 |         let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
  12.    |                           ^^^^^
  13.    |
  14. note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 22:5...
  15.   --> server/src/db.rs:22:5
  16.    |
  17. 22 | /     fn handle(&mut self, _: RandomWorld, _: &mut Self::Context) -> Self::Result {
  18. 23 | |         let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
  19. 24 | |
  20. 25 | |         Box::pin(async move {
  21. ...  |
  22. 36 | |         })
  23. 37 | |     }
  24.    | |_____^
  25. note: ...so that reference does not outlive borrowed content
  26.   --> server/src/db.rs:23:19
  27.    |
  28. 23 |         let fut = self.cl.query("SELECT $1::TEXT", &[&"hello world"]);
  29.    |                   ^^^^^^^
  30.    = note: but, the lifetime must be valid for the static lifetime...
  31.    = note: ...so that the expression is assignable:
  32.            expected std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = std::result::Result<bytes::bytes::Bytes, std::io::Error>> + 'static)>>
  33.              found std::pin::Pin<std::boxed::Box<dyn core::future::future::Future<Output = std::result::Result<bytes::bytes::Bytes, std::io::Error>>>>
  34.  
  35. error: aborting due to previous error
  36.  
  37. For more information about this error, try `rustc --explain E0495`.
  38. error: could not compile `server`.
  39.  
  40. To learn more, run the command again with --verbose.
  41. [cargo-make] ERROR - Error while executing command, exit code: 101
RAW Paste Data