Files
aji/tests/conformance/source/own_array_content/operation_void.aji
T

7 lines
268 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §10
module test.own_array_content
fn unused(heap: cap<mem.alloc>) -> void effects [mem.alloc] { let items = own.array(1, assert(true), heap) or trap; trap; }
fn main() -> void effects [] {}