Created
May 24, 2017 15:18
-
-
Save teburd/e54bbc2222858b33fcbc00834d698e1c to your computer and use it in GitHub Desktop.
gdbfail
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
gdb ./target/debug/gdbfail |
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
#[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