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 / read_only_borrow_mut_reborrow.osc

7 lines · 201 bytes Raw Blame History
1// expect: READ_ONLY_BORROW object=r line=6
2// transition: borrow_mut through shared borrow
3fn f() {
4 let a: own [i64; 4] = alloc(1);
5 let r: &[i64; 4] = &a;
6 let w: &mut [i64; 4] = &mut r;
7}