Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Point {
- x: f64,
- y: f64
- }
- fn main() {
- let p = Point{ x: 3.0, y: 4.0 };
- println!("({}, {})", p.x, p.y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement