Created
May 8, 2021 00:00
-
-
Save irevoire/b9d358cc97e9914de24e14b2680ce213 to your computer and use it in GitHub Desktop.
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
#[derive(Debug)] | |
pub struct Machin { | |
pub s: String, | |
pub a: String, | |
} | |
fn main() { | |
let machin = Machin { s: String::from("s"), a: String::from("a") }; | |
let s = machin.s; | |
let a = machin.a; | |
println!("{:?} {:?}", s, a); | |
// println!("{:?}", machin); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment