about summary refs log tree commit diff
path: root/tests/ui/box/alloc-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/box/alloc-unstable.rs')
-rw-r--r--tests/ui/box/alloc-unstable.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/box/alloc-unstable.rs b/tests/ui/box/alloc-unstable.rs
new file mode 100644
index 00000000000..66388d0d512
--- /dev/null
+++ b/tests/ui/box/alloc-unstable.rs
@@ -0,0 +1,8 @@
+// run-pass
+#![feature(allocator_api)]
+
+use std::boxed::Box;
+
+fn main() {
+    let _boxed: Box<u32, _> = Box::new(10);
+}