176 rings owned leaf element refused

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Supporting Files

lib/res.kz

Actual compiler output

error[KORU161]: std/rings:new(moves): proto 'Env' leaf 'r1' is owned ('*app/lib/res:Resource<owned!>') — a ring slot has no custody edge for an obligation; std/channel is the consumer that transits owned leaves
  --> tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_176_rings_owned_leaf_element_refused/input.k:14:0

Must fail at runtime with:

CONTAINS owned
CONTAINS custody edge

Error output must contain

custody edge

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Env, source: r1: *app/lib/res:Resource<owned!>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (moves, capacity: 8, source: env: Env)

Test Configuration

MUST_ERROR