Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- fn whatever(something: String) => {
- match something {
- "HELLO" => {
- println!("hello");
- ()
- },
- _ => ()
- }
- }
- fn whatever(something: String) => {
- let h = "HELLO".to_string();
- match something {
- h => {
- println!("hello");
- ()
- },
- _ => ()
- }
- }
- }
Add Comment
Please, Sign In to add comment