//@ compile-flags: -Znext-solver #![feature(const_trait_impl)] pub const fn equals_self(t: &T) -> bool { *t == *t //~^ ERROR the trait bound `T: [const] PartialEq` is not satisfied } fn main() {}