rust/tests/ui/allocator/function-allocator.rs
2023-01-11 09:32:08 +00:00

5 lines
84 B
Rust

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