tests: extend audited rejection twins through tasks and locks
This commit is contained in:
1 parent
e4aacef48c
commit
272aebfd32
16 files changed
+157
-13
No files matched your search
@@ -3,6 +3,7 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.useaftermove
|
||||
// AIR twin: phase2/reject/own_use_after_move.air
|
||||
|
||||
fn sink(o: own<u64>) -> void
|
||||
effects []
|
||||
@@ -21,5 +22,5 @@ effects [mem.alloc]
|
||||
{
|
||||
let x = own.new(1u64, heap) or trap;
|
||||
sink(move x);
|
||||
read(ref x)
|
||||
read(ref x) // diagnostic here: ref
|
||||
}
|
||||
Reference in new issue
Block a user