mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
10 lines
231 B
Rust
10 lines
231 B
Rust
//@ compile-flags: -Znext-solver
|
|
#![feature(const_trait_impl, const_cmp)]
|
|
|
|
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
|
|
*t == *t
|
|
//~^ ERROR the trait bound `T: [const] PartialEq` is not satisfied
|
|
}
|
|
|
|
fn main() {}
|