Files
rust/tests/ui/crashes/unreachable-array-or-slice.rs
Guillaume Gomez f666fd6417 Update UI tests
2025-02-15 13:38:16 +01:00

10 lines
210 B
Rust

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