We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 705c207 + 11c89b1 commit dc3bce7Copy full SHA for dc3bce7
tests/mod.rs
@@ -58,7 +58,7 @@ macro_rules! generate_integer_conditional_select_tests {
58
let x: $t = 0; // all 0 bits
59
let y: $t = !0; // all 1 bits
60
61
- assert_eq!(<$t>::conditional_select(&x, &y, 0.into()), 0);
+ assert_eq!(<$t>::conditional_select(&x, &y, 0.into()), x);
62
assert_eq!(<$t>::conditional_select(&x, &y, 1.into()), y);
63
64
let mut z = x;
0 commit comments