We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773ddba commit 3479fc6Copy full SHA for 3479fc6
src/test/ui/const_fn_vec_mutation_79152.rs
@@ -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