Files
rust/tests/ui/traits/const-traits/call-generic-in-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
286 B
Rust
Raw Normal View History

2025-06-20 14:44:20 +00:00
//@ check-pass
#![feature(const_trait_impl, const_cmp)]
2022-08-28 06:27:31 +00:00
#[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() {}