10 lines
191 B
Rust
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() {}
|