Created
January 14, 2015 19:57
-
-
Save onewheelskyward/6039692a4065f7f1cd5c to your computer and use it in GitHub Desktop.
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
fn main() { | |
struct Inches(i32); | |
let length = Inches(10); | |
let Inches(integer_length) = length; | |
println!("length is {} inches", integer_length); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment