Skip to content

Commit 0297c08

Browse files
committed
add integration test for in-array writing
1 parent 597520e commit 0297c08

4 files changed

Lines changed: 2925 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)