Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs
2024-06-22 14:11:11 +00:00

12 lines
268 B
Rust

//@ check-pass
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
// FIXME(effects) ~^ ERROR mismatched types
// FIXME(effects): diagnostic
}
fn main() {}