tests: extend rejection twins across public semantic features
This commit is contained in:
1 parent
272aebfd32
commit
06d8a1a76a
32 files changed
+396
-22
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// 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
|
||||
}
|
||||
Reference in new issue
Block a user