Advertisement
Guest User

Untitled

a guest
May 7th, 2022
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. error[E0759]: `profile` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
  2. --> src/subcommands/upgrade.rs:61:5
  3. |
  4. 61 | profile: &config::structs::Profile,
  5. | ^^^^^^^ ------------------------- this data with an anonymous lifetime `'_`...
  6. | |
  7. | ...is used here...
  8. ...
  9. 73 | spawn(async move {
  10. | ----- ...and is required to live as long as `'static` here
  11. |
  12. note: `'static` lifetime requirement introduced by this bound
  13. --> /Users/ilesh/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.18.1/src/task/spawn.rs:127:28
  14. |
  15. 127 | T: Future + Send + 'static,
  16. | ^^^^^^^
  17.  
  18. For more information about this error, try `rustc --explain E0759`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement