; Each arc handle is released once: releasing the same handle twice is E2002. ; expect: reject E2002 ; phase: 4 ; spec: docs/spec/03-memory-model.md module test.arc_release_twice air 0 lang 0.1 features [arc, capabilities, effects, heap, islands, ownership, resources] fn @main(%heap: cap) -> u64 effects [mem.alloc] entry: %v = const.u64 1 arc.new %v, %heap, ok -> @made, err -> @oom made(%a: arc): arc.release %a arc.release %a ret %v oom(%e: alloc_error): trap