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 / read_only_borrow_mut_reborrow.osc
| 1 | // expect: READ_ONLY_BORROW object=r line=6 |
| 2 | // transition: borrow_mut through shared borrow |
| 3 | fn f() { |
| 4 | let a: own [i64; 4] = alloc(1); |
| 5 | let r: &[i64; 4] = &a; |
| 6 | let w: &mut [i64; 4] = &mut r; |
| 7 | } |