Skip to content

Modules can't be defined inside of functions #493

Closed
@brson

Description

@brson

While pretty much useless, the following should work:

fn f() {
  mod m { }
}

Currently fails in typestate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions