1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
error[E0277]: the trait bound `S: const Foo` is not satisfied
--> $DIR/call-generic-method-nonconst.rs:24:34
|
LL | pub const EQ: bool = equals_self(&S);
| ----------- ^^
| |
| required by a bound introduced by this call
|
note: required by a bound in `equals_self`
--> $DIR/call-generic-method-nonconst.rs:17:25
|
LL | const fn equals_self<T: ~const Foo>(t: &T) -> bool {
| ^^^^^^ required by this bound in `equals_self`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.
|