Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created March 12, 2018 09:51
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/95e79979fee37d2984a1af7e81abd9b6 to your computer and use it in GitHub Desktop.
Save rust-play/95e79979fee37d2984a1af7e81abd9b6 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
struct t{
a: u32,
b: u32
}
fn main() {
let mut test: t;
test.a = 16;
test.b = 12;
let res: u32 = test.a*test.b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment