2023-08-13 08:59:19 -05:00
|
|
|
// FIXME(effects)
|
|
|
|
// check-pass
|
|
|
|
#![feature(const_trait_impl, effects)]
|
2020-11-21 21:19:46 -06:00
|
|
|
|
2021-08-25 09:30:09 -05:00
|
|
|
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
2020-11-21 21:19:46 -06:00
|
|
|
*t == *t
|
2023-04-16 06:12:37 -05:00
|
|
|
// (remove this) ~^ ERROR can't compare
|
2020-11-21 21:19:46 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|