Open
Description
Not yet minimized
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.11.0/src/proxy.rs:258:5
[INFO] [stdout] |
[INFO] [stdout] 35 | impl<'a> Proxy<'a> {
[INFO] [stdout] | -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 258 | / pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I>, Error>
[INFO] [stdout] 259 | | where
[INFO] [stdout] 260 | | I: for<'de> Deserialize<'de> + Type + Debug,
[INFO] [stdout] | |____________________________________________________^ opaque type requires that `'a` must outlive `'static`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.11.0/src/proxy.rs:258:5
[INFO] [stdout] |
[INFO] [stdout] 258 | pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I>, Error>
[INFO] [stdout] | ^ - let's call the lifetime of this reference `'1`
[INFO] [stdout] | _____|
[INFO] [stdout] | |
[INFO] [stdout] 259 | | where
[INFO] [stdout] 260 | | I: for<'de> Deserialize<'de> + Type + Debug,
[INFO] [stdout] | |____________________________________________________^ opaque type requires that `'1` must outlive `'static`
[INFO] [stdout] |
[INFO] [stdout] help: to declare that `impl futures_util::Stream<Item = I>` captures data from argument `self`, you can add an explicit `'_` lifetime bound
[INFO] [stdout] |
[INFO] [stdout] 258 | pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I> + '_, Error>
[INFO] [stdout] | ++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] help: replace `'a` with `'static`
Metadata
Metadata
Assignees
Type
Projects
Status
in progress