Skip to content

Documentation/definition not shown for extern statics #16603

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
WaffleLapkin opened this issue Feb 19, 2024 · 0 comments · Fixed by #16606
Closed

Documentation/definition not shown for extern statics #16603

WaffleLapkin opened this issue Feb 19, 2024 · 0 comments · Fixed by #16606
Labels
C-bug Category: bug

Comments

@WaffleLapkin
Copy link
Member

extern "C" {
    static UNIT: ();
}

fn f() {
    &UNIT;
}

When I hover over UNIT inside f I don't see the definition the same way that I would if I'd hover over an extern function.

rust-analyzer version: 0.3.1850-standalone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant