2024-06-21 06:57:24 -05:00
|
|
|
//@ known-bug: #110395
|
2024-11-01 13:49:08 -05:00
|
|
|
// FIXME(const_trait_impl) check-pass
|
2021-07-19 05:50:47 -05:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-08-28 01:27:31 -05:00
|
|
|
#[const_trait]
|
2021-07-19 05:50:47 -05:00
|
|
|
trait MyPartialEq {
|
|
|
|
fn eq(&self, other: &Self) -> bool;
|
|
|
|
}
|
|
|
|
|
2021-08-25 10:21:55 -05:00
|
|
|
impl<T: ~const PartialEq> const MyPartialEq for T {
|
2021-07-19 05:50:47 -05:00
|
|
|
fn eq(&self, other: &Self) -> bool {
|
|
|
|
PartialEq::eq(self, other)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|