about summary refs log tree commit diff
path: root/tests/ui/match/issue-37598.rs
blob: a3832c2e5888a3c8ef7ca6f3a10e6254b8b45b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass

fn check(list: &[u8]) {
    match list {
        &[] => {},
        &[_u1, _u2, ref _next @ ..] => {},
        &[_u1] => {},
    }
}

fn main() {}