Skip to content

Commit 62fa82d

Browse files
committed
add array_write to prove-rs
1 parent 0297c08 commit 62fa82d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
fn main() {
2+
3+
let mut a: [i16; 4] = [1;4];
4+
5+
a[0] = 2;
6+
7+
let b = &mut (a[1]);
8+
9+
*b = 2;
10+
11+
assert!(a[0] == a[1]);
12+
}

0 commit comments

Comments
 (0)