83_pointer_field_access.toy (177B)
1 record Box { 2 value: i64, 3 } 4 5 fn __user_main(): i64 { 6 let b: Box = Box { value: 42 }; 7 let p: *Box = &b; 8 return p.value; 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 |