Skip to content

Documentation/definition not shown for extern statics #16603

Closed
@WaffleLapkin

Description

@WaffleLapkin
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions