]> git.lizzy.rs Git - rust.git/blob - src/test/ui/allocator/two-allocators.rs
Rollup merge of #62869 - matklad:feature-gate, r=Mark-Simulacrum
[rust.git] / src / test / ui / allocator / two-allocators.rs
1 use std::alloc::System;
2
3 #[global_allocator]
4 static A: System = System;
5 #[global_allocator]
6 static B: System = System;
7 //~^ ERROR: cannot define more than one #[global_allocator]
8
9 fn main() {}