rust/tests/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs

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

11 lines
232 B
Rust
Raw Normal View History

// Regression test for issue #83469
// Ensures that we recover from `#[global_alloc]` on an invalid
// stmt without an ICE
fn outer() {
#[global_allocator]
fn inner() {} //~ ERROR allocators must be statics
}
fn main() {}