rust/tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs
2023-01-11 09:32:08 +00:00

9 lines
145 B
Rust

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