Created
February 18, 2019 16:31
-
-
Save rust-play/5c65abca4642054f24a13628bc40f5ba to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or 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
fn boolinator() -> bool { | |
match true { | |
true => true, | |
false => false, | |
} | |
&& | |
match false { | |
true => true, | |
false => false, | |
} | |
} | |
fn main() { | |
println!("{}", boolinator()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment