mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
9 lines
145 B
Rust
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() {}
|