2 #![warn(clippy::manual_range_patterns)]
3 #![feature(exclusive_range_pattern)]
8 let _ = matches!(f, 1..=10);
9 let _ = matches!(f, 1..=10);
10 let _ = matches!(f, 4 | 2 | 3 | 1 | 5 | 6 | 9 | 8 | 10); // 7 is missing
11 let _ = matches!(f, | 4);
12 let _ = matches!(f, 4 | 5);
13 let _ = matches!(f, 1 | 2147483647);
14 let _ = matches!(f, 0 | 2147483647);
15 let _ = matches!(f, -2147483647 | 2147483647);
16 let _ = matches!(f, 1..=4);
17 let _ = matches!(f, 1..4);
18 let _ = matches!(f, 1..=48324729);
19 let _ = matches!(f, 0..=48324730);
20 let _ = matches!(f, 0..=3);
21 #[allow(clippy::match_like_matches_macro)]
26 let _ = matches!(f, -5..=3);
27 let _ = matches!(f, -1 | -5 | 3 | -2 | -4 | -3 | 0 | 1); // 2 is missing
28 let _ = matches!(f, -1_000_001..=1_000_001);
29 let _ = matches!(f, -1_000_000..=1_000_000 | -1_000_001 | 1_000_002);
31 matches!(f, 0x00..=0x03);
32 matches!(f, 0x00..=0x07);
33 matches!(f, -0x09..=0x00);