12 lines
351 B
Rust
12 lines
351 B
Rust
// expect: reject E4201
|
|
// phase: 6
|
|
// spec: docs/spec/04-concurrency-and-atomics.md
|
|
// AIR twin: phase5/reject/store_acquire.air
|
|
module test.twins.store_acquire
|
|
|
|
fn main() -> void effects [atomic, atomic.weak] {
|
|
let c = atomic.new(1u64);
|
|
atomic.store(ref c, 2u64, acquire); // diagnostic here: atomic.store
|
|
let n = atomic.take(move c);
|
|
}
|