7 lines
368 B
Rust
7 lines
368 B
Rust
// expect: reject E1001
|
|
// 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>, p: ref<u64>) -> void effects [mem.alloc] { let graph = island.create(0u64, heap) or trap; mut g = graph; let value = island.alloc(g, p) or trap; trap; }
|
|
fn main() -> void effects [] {}
|