rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs

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

13 lines
286 B
Rust
Raw Normal View History

2024-06-21 11:57:24 +00:00
//@ check-pass
2024-06-30 17:08:45 +00:00
//@ compile-flags: -Znext-solver
#![allow(incomplete_features)]
#![feature(const_trait_impl, effects)]
2021-08-25 14:30:09 +00:00
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
2024-06-21 11:57:24 +00:00
// FIXME(effects) ~^ ERROR mismatched types
2023-12-06 02:42:59 +00:00
// FIXME(effects): diagnostic
}
fn main() {}