Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created December 5, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/2c521a6c747814bbc06825b60456089f to your computer and use it in GitHub Desktop.
Save rust-play/2c521a6c747814bbc06825b60456089f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
pub struct Um {
gus: i64,
}
fn main() {
let u = Um{gus: 7};
let a: i64 = u.gus;
match 7 {
a => println!("hmm"),
_ => (),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment