cli: map block diagnostics to their source constructs
This commit is contained in:
1 parent
1495650587
commit
1a80c42289
30 files changed
+555
-27
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// expect: reject E3001
|
||||
// phase: 6
|
||||
// spec: docs/spec/03-memory-model.md
|
||||
// AIR twin: phase2/reject/own_use_after_free.air
|
||||
module test.source_own_use_after_free
|
||||
|
||||
fn main(heap: cap<mem.alloc>) -> void effects [mem.alloc] {
|
||||
let owner = own.new(1u64, heap) or trap;
|
||||
own.free(move owner);
|
||||
ref view = owner; // diagnostic here
|
||||
}
|
||||
Reference in new issue
Block a user