rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-in-impl.rs

16 lines
281 B
Rust
Raw Normal View History

2023-04-16 06:12:37 -05:00
// known-bug: #110395
#![feature(const_trait_impl)]
2022-08-28 01:27:31 -05:00
#[const_trait]
trait MyPartialEq {
fn eq(&self, other: &Self) -> bool;
}
2021-08-25 10:21:55 -05:00
impl<T: ~const PartialEq> const MyPartialEq for T {
fn eq(&self, other: &Self) -> bool {
PartialEq::eq(self, other)
}
}
fn main() {}