1 error[E0277]: can't compare `S` with `S`
2 --> $DIR/call-generic-method-nonconst.rs:19:34
4 LL | pub const EQ: bool = equals_self(&S);
5 | ^^ no implementation for `S == S`
7 = help: the trait `PartialEq` is not implemented for `S`
8 note: required by a bound in `equals_self`
9 --> $DIR/call-generic-method-nonconst.rs:12:25
11 LL | const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
12 | ^^^^^^^^^^^^^^^^ required by this bound in `equals_self`
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.