2024-06-30 17:08:45 +00:00
|
|
|
//@ compile-flags: -Znext-solver
|
2025-07-11 17:35:57 +02:00
|
|
|
#![feature(const_trait_impl, const_cmp)]
|
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
|
2025-03-11 12:08:45 +00:00
|
|
|
//~^ ERROR the trait bound `T: [const] PartialEq` is not satisfied
|
2020-11-22 04:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|