about summary refs log tree commit diff
path: root/src/test/ui/allocator/two-allocators.rs
blob: c967a45c7b48505bac124566953b33dcc8546468 (plain)
1
2
3
4
5
6
7
8
9
10
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() {}