☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
slice_rest_pattern.rs
☽
☼
gcc/testsuite/rust/compile/slice_rest_pattern.rs
code
plain
raw
1
// { dg-options "-fsyntax-only" }
2
fn foo(a: &[u32]) {
3
match a {
4
[first, ..] => {}
5
[.., last] => {}
6
_ => {}
7
}
8
}