Files
aji/tests/conformance/source/reject_twins/missing_weak_effect.aji
T

15 lines
461 B
Rust

// 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
}