1 error[E0277]: can't compare `T` with `T` in const contexts
2 --> $DIR/call-generic-method-fail.rs:4:5
5 | ^^^^^^^^ no implementation for `T == T`
7 note: the trait `PartialEq` is implemented for `T`, but that implementation is not `const`
8 --> $DIR/call-generic-method-fail.rs:4:5
13 error[E0015]: cannot call non-const operator in constant functions
14 --> $DIR/call-generic-method-fail.rs:4:5
19 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
20 help: consider further restricting this bound
22 LL | pub const fn equals_self<T: PartialEq + ~const std::cmp::PartialEq>(t: &T) -> bool {
23 | ++++++++++++++++++++++++++++
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0015, E0277.
28 For more information about an error, try `rustc --explain E0015`.