From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/next-solver/slice-match-byte-lit.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui/traits/next-solver/slice-match-byte-lit.rs (limited to 'tests/ui/traits/next-solver/slice-match-byte-lit.rs') 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() {} -- cgit v1.2.3