rust/tests/ui/traits/next-solver/slice-match-byte-lit.rs
2024-02-16 20:02:50 +00:00

12 lines
149 B
Rust

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