summaryrefslogtreecommitdiffstats
path: root/tests/ui/allocator/two-allocators.rs
blob: aa1291e77aecbb3a495210ef3b318af7078208fc (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 multiple global allocators

fn main() {}