Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Foo {
- ONE,
- TWO,
- }
- fn teszt(tt: Foo) {
- match tt {
- Foo::ONE => println!("ONE ..."),
- Foo::TWO => println!("TWO ..."),
- }
- }
- fn main() {
- teszt(Foo::TWO);
- teszt(Foo::ONE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement