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

7 lines
272 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>, p: slice<u64>) -> void effects [mem.alloc] { let items = own.array(1, p, heap) or trap; trap; }
fn main() -> void effects [] {}