1 use std::alloc::{GlobalAlloc, Layout};
5 unsafe impl GlobalAlloc for A {
6 unsafe fn alloc(&self, _: Layout) -> *mut u8 { panic!() }
7 unsafe fn dealloc(&self, _: *mut u8, _: Layout) { panic!() }
10 #[global_allocator(malloc)] //~ ERROR malformed `global_allocator` attribute input