Error mentions invalid nested HRTB: &mut for<'a> fn(for<'a> fn(&'a ()))
#134410
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-pretty
Area: Pretty printing (including `-Z unpretty`)
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The error prints
&mut for<'a> fn(for<'a> fn(&'a ()))
, which has nestedfor<'a>
HRTB binders, which is illegal syntax.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: