Sign in
android
/
toolchain
/
rustc
/
32f7835b4f844d645621e83c89a3178ef87b0d69
/
.
/
src
/
test
/
ui
/
proc-macro
/
issue-83469-global-alloc-invalid-stmt.rs
blob: 25adc5d25780b1f0e1bc6895258f85dd4cacca1d [
file
] [
log
] [
blame
]
// 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
()
{}