tests: extend rejection twins across public semantic features
This commit is contained in:
1 parent
272aebfd32
commit
06d8a1a76a
32 files changed
+396
-22
No files matched your search
@@ -3,12 +3,13 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/03-memory-model.md
|
||||
module demo.content_owner
|
||||
// AIR twin: phase4/reject/island_content_owner.air
|
||||
|
||||
fn main(heap: cap<mem.alloc>) -> u64
|
||||
effects [mem.alloc]
|
||||
{
|
||||
let o = own.new(1u64, heap) or trap;
|
||||
let isl = island.create(move o, heap) or trap;
|
||||
let isl = island.create(move o, heap) or trap; // diagnostic here: island.create
|
||||
island.destroy(move isl);
|
||||
0
|
||||
}
|
||||
Reference in new issue
Block a user