blob: 2bc5ee512c52fd1c77672e55b8c89926409a3756 [file] [log] [blame]
#![feature(const_trait_impl)]
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
//~^ ERROR can't compare
}
fn main() {}