summaryrefslogtreecommitdiffstats
path: root/tests/ui/allocator/function-allocator.rs
blob: d53f6e9b72e88dda866e68ddc446eb4491ddbf75 (plain)
1
2
3
4
#[global_allocator]
fn foo() {} //~ ERROR: allocators must be statics

fn main() {}