2017-06-03 14:54:08 -07:00
|
|
|
// aux-build:system-allocator.rs
|
2016-04-26 10:51:14 -07:00
|
|
|
// no-prefer-dynamic
|
2019-07-19 20:08:21 +02:00
|
|
|
// error-pattern: the `#[global_allocator]` in
|
2016-04-26 10:51:14 -07:00
|
|
|
|
2017-06-03 14:54:08 -07:00
|
|
|
extern crate system_allocator;
|
|
|
|
|
2018-04-14 16:47:38 +09:00
|
|
|
use std::alloc::System;
|
2017-06-03 14:54:08 -07:00
|
|
|
|
|
|
|
#[global_allocator]
|
|
|
|
static A: System = System;
|
|
|
|
|
|
|
|
fn main() {}
|