summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-prop-ice.rs
blob: 5bffe0206294d80718fdba1d52d1f8cfe11f3ec3 (plain)
1
2
3
4
5
// build-fail

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