error[E0015]: cannot call non-const operator in constant functions --> $DIR/call-generic-method-fail.rs:5:5 | LL | *t == *t | ^^^^^^^^ | = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants help: consider further restricting this bound | LL | pub const fn equals_self(t: &T) -> bool { | ++++++++++++++++++++++++++++ error: aborting due to previous error For more information about this error, try `rustc --explain E0015`.