Skip to content

Instantly share code, notes, and snippets.

@mhintz
Created March 26, 2016 16:51
Show Gist options
  • Save mhintz/c40749d774f2e88ad5c9 to your computer and use it in GitHub Desktop.
Save mhintz/c40749d774f2e88ad5c9 to your computer and use it in GitHub Desktop.
unexpected undefined type name errors example
use doesnt_exist::*;
pub fn example_case(something: Option<u32>) {
match something {
Some(x) => { println!("found a number {}", x); },
None => { println!("found nothing"); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment