rust/tests/ui/consts/issue-32829.rs
2023-01-11 09:32:08 +00:00

6 lines
132 B
Rust

static S : u64 = { { panic!("foo"); 0 } };
//~^ ERROR could not evaluate static initializer
fn main() {
println!("{:?}", S);
}