Skip to content

Commit 3479fc6

Browse files
committed
add testcase for rust-lang#79152
1 parent 773ddba commit 3479fc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
3+
// https://github.com/rust-lang/rust/issues/79152
4+
const fn foo() {
5+
let mut array = [[0; 1]; 1];
6+
array[0][0] = 1;
7+
}
8+
9+
pub fn main() {
10+
foo()
11+
}

0 commit comments

Comments
 (0)