diff options
Diffstat (limited to 'src/test/ui/allocator/two-allocators2.rs')
-rw-r--r-- | src/test/ui/allocator/two-allocators2.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/allocator/two-allocators2.rs b/src/test/ui/allocator/two-allocators2.rs new file mode 100644 index 000000000..6dfefe19c --- /dev/null +++ b/src/test/ui/allocator/two-allocators2.rs @@ -0,0 +1,12 @@ +// aux-build:system-allocator.rs +// no-prefer-dynamic +// error-pattern: the `#[global_allocator]` in + +extern crate system_allocator; + +use std::alloc::System; + +#[global_allocator] +static A: System = System; + +fn main() {} |