summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-1588.rs
blob: b0a3d11bce4635a1d0745a07912566b986a62544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(clippy::all)]

/// Test for https://github.com/rust-lang/rust-clippy/issues/1588

fn main() {
    match 1 {
        1 => {},
        2 => {
            [0; 1];
        },
        _ => {},
    }
}