Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[derive(Debug)]
- struct Thing {
- a: u64,
- b: u64,
- }
- fn main() {
- let thing1 = Thing{a: 1, b: 2};
- let thing2 = Thing{a: 1, .. thing1};
- println!("{:?}, {:?}", thing1, thing2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement