Files
aji/tests/conformance/source/inferred_content/island_alloc_void.aji
T

7 lines
366 B
Rust

// expect: reject E7005
// phase: 6
// spec: docs/spec/15-source-language.md §10/§16; docs/spec/03-memory-model.md §25
module test.inferred_content
fn unused(heap: cap<mem.alloc>) -> void effects [mem.alloc] { let graph = island.create(0u64, heap) or trap; mut g = graph; let value = island.alloc(g, assert(true)) or trap; trap; }
fn main() -> void effects [] {}