blob: 25adc5d25780b1f0e1bc6895258f85dd4cacca1d (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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() {}
|