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