2024-10-29 17:51:38 +00:00
|
|
|
error[E0277]: the trait bound `(): ~const Foo` is not satisfied
|
2024-11-24 01:15:04 +00:00
|
|
|
--> $DIR/minicore-fn-fail.rs:19:19
|
2024-10-29 17:51:38 +00:00
|
|
|
|
|
|
|
|
|
LL | call_indirect(&foo::<()>);
|
2024-11-24 01:15:04 +00:00
|
|
|
| ------------- ^^^^^^^^^^
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `call_indirect`
|
|
|
|
|
--> $DIR/minicore-fn-fail.rs:11:27
|
|
|
|
|
|
|
|
|
|
|
LL | const fn call_indirect<T: ~const Fn()>(t: &T) { t() }
|
2025-04-01 16:21:50 +00:00
|
|
|
| ^^^^^^^^^^^ required by this bound in `call_indirect`
|
2024-10-29 17:51:38 +00:00
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|