blob: e96249ff2fd5a4710f2c9b68166e438e136dc9f0 (
plain)
1
2
3
4
5
6
7
8
9
|
#![feature(const_fn_trait_bound)]
#![feature(const_trait_impl)]
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
//~^ ERROR calls in constant functions are limited to constant functions
}
fn main() {}
|