2023-04-16 06:12:37 -05:00
|
|
|
// known-bug: #110395
|
2023-02-07 14:59:48 -06:00
|
|
|
|
|
|
|
#![feature(derive_const)]
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
|
|
|
#[derive_const(PartialEq)]
|
|
|
|
pub struct Reverse<T>(T);
|
|
|
|
|
|
|
|
const fn foo(a: Reverse<i32>, b: Reverse<i32>) -> bool {
|
|
|
|
a == b
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|