summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-needs-allocator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-needs-allocator.rs')
-rw-r--r--src/test/ui/feature-gates/feature-gate-needs-allocator.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-needs-allocator.rs b/src/test/ui/feature-gates/feature-gate-needs-allocator.rs
new file mode 100644
index 000000000..08954944b
--- /dev/null
+++ b/src/test/ui/feature-gates/feature-gate-needs-allocator.rs
@@ -0,0 +1,3 @@
+#![needs_allocator] //~ ERROR the `#[needs_allocator]` attribute is
+
+fn main() {}