summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/slice-match-byte-lit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/next-solver/slice-match-byte-lit.rs')
-rw-r--r--tests/ui/traits/next-solver/slice-match-byte-lit.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/slice-match-byte-lit.rs b/tests/ui/traits/next-solver/slice-match-byte-lit.rs
new file mode 100644
index 000000000..1edc9f1e8
--- /dev/null
+++ b/tests/ui/traits/next-solver/slice-match-byte-lit.rs
@@ -0,0 +1,11 @@
+// compile-flags: -Znext-solver
+// check-pass
+
+fn test(s: &[u8]) {
+ match &s[0..3] {
+ b"uwu" => {}
+ _ => {}
+ }
+}
+
+fn main() {}