; Allocation requires the effect mem.alloc. ; expect: reject E3101 ; phase: 2 ; spec: docs/spec/03-memory-model.md module test.alloc_without_effect air 0 lang 0.1 features [capabilities, effects, heap, ownership, resources] fn @f(%heap: cap) -> void effects [] entry: %v = const.u64 1 own.new %v, %heap, ok -> @have, err -> @nomem have(%o: own): own.free %o ret nomem(%e: alloc_error): ret