tests: extend rejection twins across public semantic features

This commit is contained in:
dev committed 2026-10-08 19:14:12 +03:00
1 parent 272aebfd32
commit 06d8a1a76a
32 files changed
+396 -22

No files matched your search

@@ -3,6 +3,7 @@
// phase: 6
// spec: docs/spec/03-memory-model.md
module demo.use_after_send
// AIR twin: phase4/reject/island_use_after_send.air
fn main(heap: cap<mem.alloc>) -> u64
effects [mem.alloc, task.wait]
@@ -12,7 +13,7 @@ effects [mem.alloc, task.wait]
let isl = island.create(1u64, heap) or trap;
channel.send(tx, move isl) or trap;
{
ref g = isl;
ref g = isl; // diagnostic here
let r = island.root(g);
}
channel.close_sender(move tx);