Skip to content

Segfault when compiling wrong program #9702

@codename68

Description

@codename68

The compiler segfaults on the following program:

struct X { field: Option<X> }

fn main() { let x = X { field: None }; }

Surprisingly, the following program successfully compiles:

struct X { field: Option<X> }

fn main(){}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions