interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tests / compiler / neg / boo_outer_binding.osc

11 lines · 246 bytes Raw Blame History
1// expect: BORROW_OUTLIVES_OWNER object=b line=8
2// transition: inner owner
3fn f() -> i64 {
4 let a: own [i64; 4] = alloc(1);
5 let mut r: &[i64; 4] = &a;
6 {
7 let b: own [i64; 4] = alloc(2);
8 r = &b;
9 }
10 return r[0];
11}