From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/pattern/integer-range-binding.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/ui/pattern/integer-range-binding.rs (limited to 'tests/ui/pattern/integer-range-binding.rs') diff --git a/tests/ui/pattern/integer-range-binding.rs b/tests/ui/pattern/integer-range-binding.rs new file mode 100644 index 000000000..ff065882d --- /dev/null +++ b/tests/ui/pattern/integer-range-binding.rs @@ -0,0 +1,8 @@ +// run-pass + +fn main() { + let -2147483648..=2147483647 = 1; + let 0..=255 = 0u8; + let -128..=127 = 0i8; + let '\u{0000}'..='\u{10FFFF}' = 'v'; +} -- cgit v1.2.3