Skip to content

deriving doesn't work inside function #4913

Closed
@lifthrasiir

Description

@lifthrasiir

Example: (also confirmed by --pretty expanded)

fn main() {
    #[deriving(Eq)] struct x { x:int }
    x{x:4} == x{x:4};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions