Last active
March 15, 2021 16:47
-
-
Save dns2utf8/896ab69c2739b530c1318b3bbe4d61ce 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
// Source: https://gist.github.com/dns2utf8/896ab69c2739b530c1318b3bbe4d61ce | |
enum ABC { | |
A, | |
B, | |
C, | |
} | |
// use ABC::*; // <-- enable this | |
fn main() { | |
match ABC::C { | |
A => { | |
println!("Hello, A!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run on play.rust-lang.org