-
-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
@derive(Eq)
enum MyEnum {
One,
Two,
}
fn cmp_enum() -> bool {
let one = MyEnum::One();
let two = MyEnum::Two();
return one == two;
}I can't simply do one == two because it transpiles to eq(&one, two) instead of eq(&one, &two).
Is it intended that I have to do one == &two every time?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working