summaryrefslogtreecommitdiffstats
path: root/src/test/ui/allocator/object-safe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/allocator/object-safe.rs')
-rw-r--r--src/test/ui/allocator/object-safe.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/allocator/object-safe.rs b/src/test/ui/allocator/object-safe.rs
deleted file mode 100644
index fae7ab7fe..000000000
--- a/src/test/ui/allocator/object-safe.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// run-pass
-
-// Check that `Allocator` is object safe, this allows for polymorphic allocators
-
-#![feature(allocator_api)]
-
-use std::alloc::{Allocator, System};
-
-fn ensure_object_safe(_: &dyn Allocator) {}
-
-fn main() {
- ensure_object_safe(&System);
-}