rust/tests/ui/traits/next-solver/slice-match-byte-lit.rs

12 lines
149 B
Rust

//@ compile-flags: -Znext-solver
//@ check-pass
fn test(s: &[u8]) {
match &s[0..3] {
b"uwu" => {}
_ => {}
}
}
fn main() {}