// check-pass #![feature(derive_const)] #![feature(const_trait_impl)] #[derive_const(PartialEq)] pub struct Reverse(T); const fn foo(a: Reverse, b: Reverse) -> bool { a == b } fn main() {}