Skip to content

ICE on misplaced lang attribute #10313

Closed
Closed
@klutzy

Description

@klutzy
#[no_std];
#[lang="start"] mod x {}
fn main() {}
error: internal compiler error: node_id_to_type: no type for node `mod x (id=2)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions