; atomic is linear: as a struct field it needs linear_aggregates (spec 04 ยง23). ; expect: reject E0006 ; phase: 5 ; spec: docs/spec/04-concurrency-and-atomics.md module test.struct_field air 0 lang 0.1 features [atomics, effects, ownership] type @S = struct { n: atomic } fn @main() -> u64 effects [] entry: %k = const.u64 0 ret %k