Skip to content

Shared discriminator does not cause compiler error #3351

@nobel-sh

Description

@nobel-sh

The following code should generate a compiler error stating how the same discriminant value is assigned multiple times.

enum Foo {
    Bar = 1,
    Qaz = 1,
}

fn main() {}

But it seems to generate no errors on gccrs.
Godbolt: https://godbolt.org/z/f1aY19v4q

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions