summaryrefslogtreecommitdiffstats
path: root/tests/ui/allocator/two-allocators2.rs
blob: 6dfefe19c7fa4f688ae7cd38666b1db888942d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// aux-build:system-allocator.rs
// no-prefer-dynamic
// error-pattern: the `#[global_allocator]` in

extern crate system_allocator;

use std::alloc::System;

#[global_allocator]
static A: System = System;

fn main() {}