summaryrefslogtreecommitdiffstats
path: root/src/test/ui/box/alloc-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/box/alloc-unstable.rs')
-rw-r--r--src/test/ui/box/alloc-unstable.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/box/alloc-unstable.rs b/src/test/ui/box/alloc-unstable.rs
new file mode 100644
index 000000000..66388d0d5
--- /dev/null
+++ b/src/test/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);
+}