-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Started to get the following compiler error, and cant for the life of me work out why?
error[E0310]: the parameter type `S` may not live long enough
--> /home/utx0/.cargo/registry/src/index.crates.io-6f17d22bba15001f/streamunordered-0.5.3/src/task.rs:80:9
|
80 | waker_ref(this)
| ^^^^^^^^^^^^^^^
| |
| the parameter type `S` must be valid for the static lifetime...
| ...so that the type `S` will meet its required lifetime bounds
|
help: consider adding an explicit lifetime bound
|
77 | impl<S: 'static> Task<S> {
| +++++++++
Metadata
Metadata
Assignees
Labels
No labels