Incorrect compiler hint for complicated type handler #64548
Labels
A-impl-trait
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
A-suggestion-diagnostics
Area: suggestions generated by the compiler applied by cargo fix
C-bug
Category: This is a bug.
D-invalid-suggestion
A structured suggestion resulting in incorrect code
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I was trying to implement custom macro parser but fall into strange issue.
Having following code
(Playground)
I got an error
So I added
where impl Peek<Token = T>: std::ops::Fn<(syn::lookahead::TokenMarker,)>
to the code and then situation became worse:For the first of them it's ok [for me at least] that compiler can't understand which module is private, however the second and the third make me very confused, because this's the code generated by compiler itself.
The text was updated successfully, but these errors were encountered: