summaryrefslogtreecommitdiffstats
path: root/tests/ui/const_prop/ice-issue-111353.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/const_prop/ice-issue-111353.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/const_prop/ice-issue-111353.rs b/tests/ui/const_prop/ice-issue-111353.rs
new file mode 100644
index 000000000..99d1b792f
--- /dev/null
+++ b/tests/ui/const_prop/ice-issue-111353.rs
@@ -0,0 +1,7 @@
+// build-pass
+#![crate_type = "lib"]
+#![feature(unsized_fn_params)]
+
+pub fn f(mut x: [i32]) {
+ x[0] = 1;
+}