Skip to content

E0700 does not point to where the captured lifetime is #68604

Open
@Nokel81

Description

@Nokel81

The error message

error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds

does not point to where in the block the captured lifetime is (which makes debugging it difficult).

It does, however, point to the scope:

note: hidden type `impl futures::Future` captures the scope of call-site for function at 48:40
  --> rs/agent-updater/src/fetcher.rs:48:40
   |
48 |       ) -> Result<PathBuf, FetcherError> {
   |  ________________________________________^
49 | |         let checksum = m.get_valid_checksum()?;
51 | |
...  |
72 | |         Ok(folder)
73 | |     }
   | |_____^

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitA-diagnosticsArea: Messages for errors, warnings, and lintsAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.C-enhancementCategory: An issue proposing an enhancement or a PR with one.D-papercutDiagnostics: An error or lint that needs small tweaks.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions