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,6 +3,7 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.take_while_lent
|
||||
// AIR twin: phase5/reject/take_while_lent.air
|
||||
|
||||
fn read(c: ref<atomic<u64>>) -> u64
|
||||
effects [atomic]
|
||||
@@ -19,7 +20,7 @@ effects [atomic, task.spawn, task.wait]
|
||||
ref r = c;
|
||||
scope s {
|
||||
let t = task.spawn(s, read, r);
|
||||
v = atomic.take(move c);
|
||||
v = atomic.take(move c); // diagnostic here: atomic.take
|
||||
let x = task.join(move t);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user