summaryrefslogtreecommitdiff
path: root/src/tools/miri/tests/panic/oob_subslice.rs
blob: 4e79b6a99e9c678098f5f8b72ac4808a07270a4d (plain)
1
2
3
4
5
6
7
// This once failed with "unwinding past a stack frame that does not allow unwinding",
// fixed by https://github.com/rust-lang/rust/issues/110233.

fn main() {
    let x = [1, 2, 3, 4];
    let _val = &x[..=4];
}