summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/issue-18425.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/array-slice-vec/issue-18425.rs')
-rw-r--r--src/test/ui/array-slice-vec/issue-18425.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/issue-18425.rs b/src/test/ui/array-slice-vec/issue-18425.rs
new file mode 100644
index 000000000..354c14a75
--- /dev/null
+++ b/src/test/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];
+}