8 lines
400 B
Rust
8 lines
400 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 stop() -> never effects [] { trap; }
|
|
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, stop()) or trap; trap; }
|
|
fn main() -> void effects [] {}
|