19 lines
380 B
LLVM
19 lines
380 B
LLVM
; 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
|