tests: audit swap leak and remaining source rule boundaries

This commit is contained in:
dev committed 2026-10-08 22:25:42 +03:00
1 parent 03305f0957
commit ee09a7a290
12 files changed
+408 -10

No files matched your search

@@ -0,0 +1,18 @@
// expect: reject E0006
// phase: 6
// spec: docs/spec/04-concurrency-and-atomics.md §38.1; docs/spec/15-source-language.md §10
// AIR twin: phase3/reject/channels_endpoint_element.air
module test.channels_endpoint_element
fn f(heap: cap<mem.alloc>) -> void effects [mem.alloc] {
match channel.make<sender<u64>>(1, heap) { // diagnostic here: channel.make
ok(tx, rx) => {
trap;
}
err(e) => {
trap;
}
}
}
fn main() -> void effects [] {}