Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Point<T> {
- x: T,
- y: T,
- }
- fn main() {
- let integer = Point { x: 5, y: 10 };
- let float = Point { x: 1.0, y: 4.0 };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement