summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/slice-match-byte-lit.rs
blob: 1edc9f1e8e95eb03003ee7c21e62ecfde6987da9 (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() {}