Guest User

Untitled

a guest
Jul 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. fn main() {
  2. let my_string: Option<String> = Some("hello".into());
  3. match my_string.as_ref() {
  4. Some("hello") => println!("I work!"),
  5. _ => panic!(),
  6. }
  7. }
Add Comment
Please, Sign In to add comment