Guest User

Untitled

a guest
May 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. fn main() {
  2. fn whatever(something: String) => {
  3. match something {
  4. "HELLO" => {
  5. println!("hello");
  6. ()
  7. },
  8. _ => ()
  9. }
  10. }
  11. fn whatever(something: String) => {
  12. let h = "HELLO".to_string();
  13. match something {
  14. h => {
  15. println!("hello");
  16. ()
  17. },
  18. _ => ()
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment