Created
May 13, 2024 06:07
-
-
Save evanrelf/f775520fb11285a57af8c31b2c1453a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const A: usize = 2; | |
const B: usize = 3; | |
#[allow(clippy::assertions_on_constants)] | |
const _: () = { | |
assert!(2 <= A && A <= (B + 1) / 2, "Not a valid (a,b)-tree"); | |
assert!(A == (B / 2) + (B % 2), "Not a valid B-tree"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment