rust/tests/ui/consts/const-eval/index_out_of_bounds.rs

5 lines
56 B
Rust

static FOO: i32 = [][0];
//~^ ERROR E0080
fn main() {}