Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const_derives/derive-const-with-params.rs

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

15 lines
257 B
Rust
Raw Normal View History

2024-06-21 11:57:24 +00:00
//@ known-bug: #110395
// FIXME(effects) check-pass
#![feature(derive_const)]
2023-12-06 02:42:59 +00:00
#![feature(const_trait_impl, effects)]
#[derive_const(PartialEq)]
pub struct Reverse<T>(T);
const fn foo(a: Reverse<i32>, b: Reverse<i32>) -> bool {
a == b
}
fn main() {}