summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/unreachable-array-or-slice.rs
blob: e920e58d6ec6dd0fb48b9d668781e954ca17f9e7 (plain)
1
2
3
4
5
6
7
8
struct Foo(isize, isize, isize, isize);

pub fn main() {
    let Self::anything_here_kills_it(a, b, ..) = Foo(5, 5, 5, 5);
    match [5, 5, 5, 5] {
        [..] => {},
    }
}