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
@@ -0,0 +1,10 @@
|
||||
// channel.recv lacks task.wait on a borrowed receiver parameter; no allocation adds another missing effect.
|
||||
// expect: reject E3101
|
||||
// phase: 6
|
||||
// spec: docs/spec/04-concurrency-and-atomics.md
|
||||
// AIR twin: phase3/reject/channels_recv_without_effect.air
|
||||
module test.source_recv_without_effect
|
||||
fn f(rx: mut<receiver<u64>>) -> u64 effects [] {
|
||||
channel.recv(rx) or trap // diagnostic here: channel.recv
|
||||
}
|
||||
fn main() -> u64 effects [] { return 0u64; }
|
||||
Reference in new issue
Block a user