about summary refs log tree commit diff
path: root/src/test/ui/allocator/two-allocators.rs
blob: 10fb03c39302b470f85d4927e0d96c2ec31901ef (plain)
1
2
3
4
5
6
7
8
9
use std::alloc::System;

#[global_allocator]
static A: System = System;
#[global_allocator]
static B: System = System;
//~^ ERROR: cannot define more than one #[global_allocator]

fn main() {}