Skip to content

Visibility of struct-like enums across crates seems to fail #5557

Closed
@mantielero

Description

@mantielero

I have the following Enum defined within a crate:

pub enum Event {
    pub KeyEvent{md: u8, key: u16, ch: u32},  
    pub ResizeEvent{w: i32, h: i32},
    NoEvent,
    NotManagedEvent
}

When I try to use the crate I cannot match KeyEvent. rustc complains about KeyEvent not name a structure.

Relevant information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions