Skip to content

stack overflow by enum and const #36163

Closed
@mikhail-m1

Description

@mikhail-m1

while I was working on #35309 I found example not detected by static recursion checker

const A : i32 = Foo::B;
enum Foo { B = A }
fn main() {}

I'm going to fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions