Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Speed{
- speed: i32,
- direction: i32
- }
- #[derive(Default)]
- struct Car{
- speed: Speed,
- color: String
- }
- fn main() {
- println!("Hello, world!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement