2023-08-13 13:59:19 +00:00
|
|
|
// FIXME(effects)
|
|
|
|
// check-pass
|
|
|
|
#![feature(const_trait_impl, effects)]
|
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
|
2023-04-16 11:12:37 +00:00
|
|
|
// (remove this) ~^ ERROR can't compare
|
2020-11-22 04:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|