34_record_literal_field.toy (171B)
1 record Point { 2 x: i64, 3 y: i64, 4 } 5 6 fn __user_main(): i64 { 7 let p: Point = Point { x: 40 }; 8 return p.x + p.y + 2; 9 } 10 11 fn main(): i32 { return __user_main() as i32; }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |