diff options
Diffstat (limited to 'tests/ui/allocator/two-allocators.rs')
| -rw-r--r-- | tests/ui/allocator/two-allocators.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/allocator/two-allocators.rs b/tests/ui/allocator/two-allocators.rs new file mode 100644 index 00000000000..aa1291e77ae --- /dev/null +++ b/tests/ui/allocator/two-allocators.rs @@ -0,0 +1,9 @@ +use std::alloc::System; + +#[global_allocator] +static A: System = System; +#[global_allocator] +static B: System = System; +//~^ ERROR: cannot define multiple global allocators + +fn main() {} |
