Files
aji/tests/conformance/phase2/reject/resource_in_struct.air
T

16 lines
359 B
LLVM

; Resources in aggregates require the published linear_aggregates feature, absent here.
; expect: reject E0006
; phase: 2
; spec: docs/spec/06-resources-and-errors.md
module test.resource_in_struct
air 0
lang 0.1
features [arrays, capabilities, effects, ownership, resources]
type @Log = struct { f: file<append> }
fn @f() -> void
effects []
entry:
ret