That specific case isn't using StructuralEq
, it's a tuple-struct pattern so it will definitely not match. For StructuralEq
you would need to test:
const THINGY: Thingy = Thingy(999999999, 2);
match thingy {
// Should the following match succeed?
THINGY => println!("matches!"),
_ => println!("doesn't match"),
}
(And introducing inconsistencies between struct patterns and const
path patterns is another problem).