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

21 lines
368 B
Rust
Raw Permalink Normal View History

2023-12-10 10:42:34 +00:00
//@ known-bug: #110395
2024-10-30 18:03:44 +00:00
#![feature(const_trait_impl, const_cmp, const_default_impls, derive_const)]
2022-09-20 11:55:07 +00:00
pub struct A;
impl const Default for A {
fn default() -> A { A }
}
impl const PartialEq for A {
fn eq(&self, _: &A) -> bool { true }
}
#[derive_const(Default, PartialEq)]
pub struct S((), A);
const _: () = assert!(S((), A) == S::default());
fn main() {}