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