Skip to content

Comparing enums gives SIGILL #349

@bjorn3

Description

@bjorn3
fn main() {
    let _ = LoopState::Continue(()) == LoopState::Break(());
}

#[derive(PartialEq)]
enum LoopState {
    Continue(()),
    Break(())
}
./test.sh: line 29: 70353 Illegal instruction: 4  ./target/out/std_exampl

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions