summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/slice-match-byte-lit.rs
blob: 4f848062595dac8ba7d49416ccbe4e020bf8cd99 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Ztrait-solver=next
// check-pass

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

fn main() {}