Skip to content

Compiler error when using as a dep #8

@utx0

Description

@utx0

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions