rust/src/test/ui/allocator/two-allocators.rs
2019-04-22 16:57:01 +01:00

9 lines
193 B
Rust

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() {}