diag: add factual related borrow and task locations
This commit is contained in:
1 parent
dbd9763713
commit
8ee0f4c2bf
27 files changed
+659
-18
No files matched your search
@@ -0,0 +1,18 @@
|
||||
; expect: reject E2101
|
||||
; phase: 1
|
||||
; spec: docs/spec/10-diagnostics-and-agent-protocol.md §2
|
||||
module related.rejected
|
||||
air 0
|
||||
lang 0.1
|
||||
features [ownership]
|
||||
fn @main() -> u64
|
||||
effects []
|
||||
entry:
|
||||
%data = local.alloc u64
|
||||
local.zero %data
|
||||
%view = borrow.ref %data
|
||||
%two = const.u64 2
|
||||
local.store %data, %two
|
||||
%result = load %view
|
||||
borrow.end %view
|
||||
ret %result
|
||||
Reference in new issue
Block a user