rust/tests/ui/allocator/function-allocator.rs

5 lines
84 B
Rust

#[global_allocator]
fn foo() {} //~ ERROR: allocators must be statics
fn main() {}