]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-with-params.rs
Add ~const bounds trait bounds when using derive_const
[rust.git] / tests / ui / rfc-2632-const-trait-impl / const_derives / derive-const-with-params.rs
1 // check-pass
2
3 #![feature(derive_const)]
4 #![feature(const_trait_impl)]
5
6 #[derive_const(PartialEq)]
7 pub struct Reverse<T>(T);
8
9 const fn foo(a: Reverse<i32>, b: Reverse<i32>) -> bool {
10     a == b
11 }
12
13 fn main() {}