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

pub fn main() {
    let Self::anything_here_kills_it(a, b, ..) = Foo(5, 5, 5, 5);
    //~^ ERROR: failed to resolve
    match [5, 5, 5, 5] {
        [..] => {},
    }
}