When RpcGroup.toLayer is called with Effect.succeed(handlers), the handler effect’s
requirements (R) are erased. This compiles even if a handler uses a service that is
never provided, and it fails at runtime with “Service not found”.
This repro shows:
- Unsafe pattern: compiles, but fails at runtime