// atomic.load.acquire lacks atomic.weak; the complete suggested effects are [atomic, atomic.weak]. // expect: reject E3101 // phase: 6 // spec: docs/spec/05-effects-and-capabilities.md ยง13 // AIR twin: phase5/reject/missing_weak_effect.air module test.source_missing_weak_effect fn main() -> u64 effects [atomic] { let c = atomic.new(0u64); let x = atomic.load(ref c, acquire); // diagnostic here: atomic.load let v = atomic.take(move c); 0 }