2024 impl_trait_overcaptures ambiguous +
#132853
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2024
Area: The 2024 edition
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-edition
Diagnostics: An error or lint that should account for edition differences.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
L-impl_trait_overcaptures
Lint: impl_trait_overcaptures
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Provides a valid suggestion that is
-> &(impl Clone + use<>)
with parentheses to avoid ambiguity.Instead, this happened: Provides a suggestion that includes
&impl Clone + use<>
which fails to parse with:Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: