rust-clippy/tests/ui/crashes/unreachable-array-or-slice.rs

8 lines
176 B
Rust

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] {
[..] => {},
}
}