; Writes through field borrows land in the struct. ; expect: run ; result: {"a":0,"b":513} ; phase: 1 ; spec: docs/spec/07a-air-instructions.md module test.field_write air 0 lang 0.1 features [arrays, ownership] type @P = struct { a: u8, b: u16 } fn @main() -> @P effects [] entry: %x = local.alloc @P local.zero %x %m = borrow.mut %x %b = borrow.field @P.b, %m %v = const.u16 513 store %b, %v borrow.end %b borrow.end %m %out = local.load %x ret %out