struct Point { x: i32, y: i32, } fn main() { let p = Point { x: 3, y: 4 }; // TODO: print p.x and p.y }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion