rust/src/test/ui/consts/const-prop-ice.rs

6 lines
103 B
Rust

// build-fail
fn main() {
[0; 3][3u64 as usize]; //~ ERROR this operation will panic at runtime
}