Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
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
()
{}