2024-10-02 19:42:06 +08:00
|
|
|
error[E0277]: the trait bound `S: const Foo` is not satisfied
|
2024-11-24 01:15:04 +00:00
|
|
|
--> $DIR/call-generic-method-nonconst.rs:24:34
|
2023-11-25 13:11:38 +00:00
|
|
|
|
|
|
|
|
|
LL | pub const EQ: bool = equals_self(&S);
|
2024-11-24 01:15:04 +00:00
|
|
|
| ----------- ^^
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `equals_self`
|
|
|
|
|
--> $DIR/call-generic-method-nonconst.rs:17:25
|
|
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | const fn equals_self<T: [const] Foo>(t: &T) -> bool {
|
|
|
|
|
| ^^^^^^^^^^^ required by this bound in `equals_self`
|
2023-11-25 13:11:38 +00:00
|
|
|
|
2024-10-02 19:42:06 +08:00
|
|
|
error: aborting due to 1 previous error
|
2023-11-25 13:11:38 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|