Created
March 12, 2018 09:51
-
-
Save rust-play/95e79979fee37d2984a1af7e81abd9b6 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or 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
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