struct Point { let x: num, y: num; fn new(x: num, y: num) -> Point { return [x, y] } } struct Test { let x: num, y: num; } fn main() { let p: Test = Point::new(5, 6); }