tests: inventory and verify source rejection twins
This commit is contained in:
1 parent
09fbf8a5bc
commit
e4aacef48c
28 files changed
+1092
-8
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// expect: reject E3002
|
||||
// phase: 6
|
||||
// spec: docs/spec/03-memory-model.md §8
|
||||
// AIR twin: phase2/reject/region_leak.air
|
||||
module test.twins.region_leak
|
||||
|
||||
fn main(heap: cap<mem.alloc>) -> void effects [mem.alloc] {
|
||||
let r = region.create(heap) or trap;
|
||||
return; // diagnostic here: return
|
||||
}
|
||||
Reference in new issue
Block a user