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