rust/tests/ui/cfg/auxiliary/cfg_inner_static.rs

8 lines
131 B
Rust

// this used to just ICE on compiling
pub fn foo() {
if cfg!(foo) {
static a: isize = 3;
a
} else { 3 };
}