2024-06-21 11:57:24 +00:00
|
|
|
//@ check-pass
|
|
|
|
|
|
2024-06-21 12:22:29 +00:00
|
|
|
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
|
2020-11-22 04:19:46 +01:00
|
|
|
|
2021-08-25 14:30:09 +00:00
|
|
|
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
2020-11-22 04:19:46 +01:00
|
|
|
*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
|
2020-11-22 04:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|