rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const_derives/derive-const-with-params.rs
2023-12-10 09:30:07 +00:00

14 lines
219 B
Rust

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