summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-with-params.rs
blob: 72edfbc97e48fb0b3421cad2dfb19eda8e5b880e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass

#![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() {}