Mistaken method shadowing by constrained impl
#7856
Labels
A-ty
type system / type inference / traits / method resolution
S-actionable
Someone could pick this issue up and work on it right now
Consider the following code:
At the location marked with
<--
,T
is not constrained toSync
and as such the call resolves to theOverload
implementation.However, rust-analyzer shows the information for
A::overloaded(self)
instead.A similar case occurs when using by-value precedence to select a method between two traits.
The type of
bound
is shown asu8
here:The text was updated successfully, but these errors were encountered: