// expect: reject E4202 // phase: 6 // spec: docs/spec/03-memory-model.md ยง25 module test.linear struct Cell { cell: atomic } fn change(value: mut, replacement: atomic) -> atomic effects [] { return value.swap(mut value.cell, move replacement); } fn main() -> u64 effects [] { return 42; }