blob: 66881334a2985e08416407fbf4177fd2c2dca975 (
plain)
1
2
3
4
5
6
7
8
9
|
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
//~^ ERROR cannot call non-const operator in constant functions
}
fn main() {}
|