rust/tests/ui/consts/issue-32829.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
132 B
Rust
Raw Normal View History

static S : u64 = { { panic!("foo"); 0 } };
2021-10-03 23:33:43 -05:00
//~^ ERROR could not evaluate static initializer
fn main() {
println!("{:?}", S);
}