; A struct holding a capability is authority-bearing and cannot be zeroed. ; expect: reject E1001 ; phase: 2 ; spec: docs/spec/05-effects-and-capabilities.md module test.capability_not_zeroable air 0 lang 0.1 features [capabilities, effects, ownership] type @Logger = struct { out: cap } fn @f() -> void effects [] entry: %x = local.alloc @Logger local.zero %x ret