Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0759]: `profile` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
- --> src/subcommands/upgrade.rs:61:5
- |
- 61 | profile: &config::structs::Profile,
- | ^^^^^^^ ------------------------- this data with an anonymous lifetime `'_`...
- | |
- | ...is used here...
- ...
- 73 | spawn(async move {
- | ----- ...and is required to live as long as `'static` here
- |
- note: `'static` lifetime requirement introduced by this bound
- --> /Users/ilesh/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.18.1/src/task/spawn.rs:127:28
- |
- 127 | T: Future + Send + 'static,
- | ^^^^^^^
- For more information about this error, try `rustc --explain E0759`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement