about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-1588.rs
blob: 422c29b66cf6806006fb7a495b332f56ac6f79d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

#![expect(clippy::no_effect)]

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

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