While a == 10 incorrect?

You can actually pass true and false to cfg! macro (and similar) since Rust 1.88.0 (link to stabilisation PR).

1 Like