rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs
2023-12-10 09:30:07 +00:00

10 lines
191 B
Rust

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