about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/slice-match-byte-lit.rs
blob: 9416f734b2d24d6f58dfa3e32ed019d064560539 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ compile-flags: -Znext-solver
//@ check-pass

fn test(s: &[u8]) {
    match &s[0..3] {
        b"uwu" => {}
        _ => {}
    }
}

fn main() {}