Open
Description
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
Labels
Area: Async & AwaitArea: Messages for errors, warnings, and lintsAsync-await issues that have been triaged during a working group meeting.Category: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that needs small tweaks.Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Centril commentedon Jan 28, 2020
@Nokel81 Do you have / could you make a small self-contained example we could use when trying to improve the diagnostics?
Nokel81 commentedon Jan 28, 2020
Yes, here is a minimal example. (cannot be a playground link since the playground doesn't have
slog
.Example:
This is compiled on stable 1.40.
If you remove the line
logger: Logger,
from thefetch_module
method then the compiler error goes away.skeet70 commentedon Jan 31, 2020
This may be related to #63033.
tmandry commentedon Feb 11, 2020
Marking as triaged. This issue would benefit from a more minimized example.
Nokel81 commentedon Feb 11, 2020
I try and get a smaller one tomorrow.
kadiwa4 commentedon Dec 24, 2024
Minimized:
This compiles successfully since 1.69.0.
@rustbot label: -E-needs-mcve +S-has-mcve