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
omega-mv / tests / compiler / neg / boo_outer_binding.osc
| 1 | // expect: BORROW_OUTLIVES_OWNER object=b line=8 |
| 2 | // transition: inner owner |
| 3 | fn 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 | } |