]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / proc-macro / issue-83469-global-alloc-invalid-stmt.rs
1 // Regression test for issue #83469
2 // Ensures that we recover from `#[global_alloc]` on an invalid
3 // stmt without an ICE
4
5 fn outer() {
6     #[global_allocator]
7     fn inner() {} //~ ERROR allocators must be statics
8 }
9
10 fn main() {}