]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/range_contains.rs
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / range_contains.rs
index 6af0d034ef617b25576507cf407b79a59879ba70..835deced5e4cba34a443debfc104ce0ac21b8635 100644 (file)
@@ -38,4 +38,14 @@ fn main() {
     x >= 8 || x >= 12;
     x < 12 || 12 < x;
     x >= 8 || x <= 12;
+
+    // Fix #6315
+    let y = 3.;
+    y >= 0. && y < 1.;
+    y < 0. || y > 1.;
+}
+
+// Fix #6373
+pub const fn in_range(a: i32) -> bool {
+    3 <= a && a <= 20
 }