14 lines
351 B
LLVM
14 lines
351 B
LLVM
; Owning resource content requires linear_aggregates, absent here; own.free still cannot discard linear content.
|
|
; expect: reject E0006
|
|
; phase: 2
|
|
; spec: docs/spec/03-memory-model.md
|
|
module test.own_of_resource
|
|
air 0
|
|
lang 0.1
|
|
features [capabilities, effects, heap, ownership, resources]
|
|
|
|
fn @f(%o: own<file<read>>) -> void
|
|
effects []
|
|
entry:
|
|
trap
|