Created
December 5, 2019 20:35
-
-
Save rust-play/2c521a6c747814bbc06825b60456089f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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