Skip to content

Instantly share code, notes, and snippets.

@irevoire
Created May 8, 2021 00:00
Show Gist options
  • Save irevoire/b9d358cc97e9914de24e14b2680ce213 to your computer and use it in GitHub Desktop.
Save irevoire/b9d358cc97e9914de24e14b2680ce213 to your computer and use it in GitHub Desktop.
#[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