12 lines
268 B
Rust
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() {}
|