blob: b479c967b0daba4784be65ad26c7aa6e2faef45a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {}
|