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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
84 B
Rust
Raw Normal View History

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