rust/tests/ui/traits/const-traits/call-generic-in-impl.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

17 lines
311 B
Rust

//@ known-bug: #110395
// FIXME(effects) check-pass
#![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() {}