about summary refs log tree commit diff
path: root/tests/ui/unique/unique-create.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unique/unique-create.rs')
-rw-r--r--tests/ui/unique/unique-create.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/unique/unique-create.rs b/tests/ui/unique/unique-create.rs
new file mode 100644
index 00000000000..c566e79620a
--- /dev/null
+++ b/tests/ui/unique/unique-create.rs
@@ -0,0 +1,11 @@
+// run-pass
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+pub fn main() {
+    let _: Box<_> = Box::new(100);
+}
+
+fn vec() {
+    vec![0];
+}