Skip to content

[semantic tokens] unresolvedReference in trait associated type #9802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jhgg opened this issue Aug 7, 2021 · 2 comments · Fixed by #10896
Closed

[semantic tokens] unresolvedReference in trait associated type #9802

jhgg opened this issue Aug 7, 2021 · 2 comments · Fixed by #10896
Labels
A-nameres name, path and module resolution S-actionable Someone could pick this issue up and work on it right now

Comments

@jhgg
Copy link
Contributor

jhgg commented Aug 7, 2021

See this code snippet:

struct A(<B as C>::D);
                   ^ `unresolvedReference`
struct B;

trait C {
    type D;
}

impl C for B {
    type D = ();
}

D however does appear in auto-complete struct A(<B as C>::$0).

rust-analyzer version: 950efff
2021-08-05 nightly

@lnicola
Copy link
Member

lnicola commented Aug 25, 2021

Might be a duplicate of #8282

@lnicola lnicola added A-nameres name, path and module resolution S-actionable Someone could pick this issue up and work on it right now labels Aug 25, 2021
@flodiebold
Copy link
Member

Probably. I think both are just an IDE-layer bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-nameres name, path and module resolution S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants