Skip to content

Instantly share code, notes, and snippets.

@teburd
Created May 24, 2017 15:18
Show Gist options
  • Save teburd/e54bbc2222858b33fcbc00834d698e1c to your computer and use it in GitHub Desktop.
Save teburd/e54bbc2222858b33fcbc00834d698e1c to your computer and use it in GitHub Desktop.
gdbfail
gdb ./target/debug/gdbfail
#[derive(Debug)]
struct MyType {
x: i64,
}
impl Default for MyType {
fn default() -> MyType {
MyType {
..Default::default()
}
}
}
fn main() {
let x: MyType = Default::default();
println!("x: {:?}", x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment