rust/src/test/ui/allocator/two-allocators.rs

10 lines
195 B
Rust
Raw Normal View History

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