arbitrary_self_types
method resolution is incorrect
#15083
Labels
A-ty
type system / type inference / traits / method resolution
B-unstable
unstable feature
C-feature
Category: feature request
rust-analyzer version: 0.3.1557-standalone (cd3bf9f 2023-06-18)
rustc version: rustc 1.72.0-nightly (2d0aa5768 2023-06-18)
relevant settings: N/A
In the following example (playground):
RA complains on line 24 (
val_ptr.add()
):The
.add
method is resolved to<*const Val>::add
, when it should be resolved toVal::add
.The text was updated successfully, but these errors were encountered: