impl Trait capturing lifetime of type parameter #79415
Labels
A-impl-trait
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: lifetime related
C-bug
Category: This is a bug.
D-confusing
Confusing diagnostic error that should be reworked
D-newcomer-roadblock
Confusing diagnostic error hard to understand for new users
F-fixed-by-type_alias_impl_trait
The issue can be fixed with type_alias_impl_trait
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected it to compile, but there was an error:
Meta
rustc --version --verbose
:The issue also affects
-Zpolonius
The text was updated successfully, but these errors were encountered: