about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/issue-18425.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/array-slice-vec/issue-18425.rs')
-rw-r--r--tests/ui/array-slice-vec/issue-18425.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/issue-18425.rs b/tests/ui/array-slice-vec/issue-18425.rs
new file mode 100644
index 00000000000..354c14a756a
--- /dev/null
+++ b/tests/ui/array-slice-vec/issue-18425.rs
@@ -0,0 +1,9 @@
+// run-pass
+// Check that codegen doesn't ICE when codegenning an array repeat
+// expression with a count of 1 and a non-Copy element type.
+
+// pretty-expanded FIXME #23616
+
+fn main() {
+    let _ = [Box::new(1_usize); 1];
+}