bynk.provider.missing_operation
Error A provides block is missing a capability operation.
A provides block implements a capability, so it must supply every operation the capability declares: callers are checked against the capability, and an operation the provider lacks would have nothing to run. The error is on the provides line and names the missing operation. Add it, with the signature the capability declares. An operation the capability does not declare is bynk.provider.extra_operation.
Example
capability Clock { fn now() -> Effect[Int] fn zone() -> Effect[String]}
provides Clock = Fixed { // ✗ no `zone` fn now() -> Effect[Int] { Effect.pure(0) }}
provides Clock = Fixed { // ✓ every operation is provided fn now() -> Effect[Int] { Effect.pure(0) } fn zone() -> Effect[String] { Effect.pure("UTC") }}In the Book
See also
- The grammar rule it governs:
provider_decl. - Every code in its category, Providers, on the diagnostic index.
bynk explain bynk.provider.missing_operationshows the same from the installed toolchain, without a network.