summaryrefslogtreecommitdiffstats
path: root/src/test/ui/allocator/auxiliary/helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/allocator/auxiliary/helper.rs')
-rw-r--r--src/test/ui/allocator/auxiliary/helper.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/allocator/auxiliary/helper.rs b/src/test/ui/allocator/auxiliary/helper.rs
new file mode 100644
index 000000000..008fb3501
--- /dev/null
+++ b/src/test/ui/allocator/auxiliary/helper.rs
@@ -0,0 +1,11 @@
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+#![no_std]
+
+extern crate alloc;
+use alloc::fmt;
+
+pub fn work_with(p: &fmt::Debug) {
+ drop(p);
+}