bynk.parse.empty_capability
Error A capability body is empty.
A capability is a set of operations that a unit asks for with given and that a provider supplies. With no operations there is nothing to call or to provide, so an empty one is refused. Declare at least one operation, or remove the capability.
Example
capability Clock { // ✗ no operations}
capability Clock { fn now() -> Effect[Int] // ✓}In the Book
See also
- The grammar rule it governs:
capability_decl. - Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.empty_capabilityshows the same from the installed toolchain, without a network.