rust/tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.rs
2023-04-16 11:38:52 +00:00

16 lines
281 B
Rust

// known-bug: #110395
#![feature(const_trait_impl)]
#[const_trait]
trait MyPartialEq {
fn eq(&self, other: &Self) -> bool;
}
impl<T: ~const PartialEq> const MyPartialEq for T {
fn eq(&self, other: &Self) -> bool {
PartialEq::eq(self, other)
}
}
fn main() {}