mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
10 lines
182 B
Rust
10 lines
182 B
Rust
// known-bug: #110395
|
|
#![feature(const_trait_impl)]
|
|
|
|
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
|
*t == *t
|
|
// (remove this) ~^ ERROR can't compare
|
|
}
|
|
|
|
fn main() {}
|