tests: inventory and verify source rejection twins
This commit is contained in:
1 parent
09fbf8a5bc
commit
e4aacef48c
28 files changed
+1092
-8
No files matched your search
@@ -2,6 +2,7 @@
|
||||
// expect: reject E2101
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
// AIR twin: phase1/reject/mut_and_shared.air
|
||||
module demo.conflict
|
||||
|
||||
fn main() -> u64
|
||||
@@ -9,6 +10,6 @@ effects []
|
||||
{
|
||||
var buf: [u64; 2] = zero;
|
||||
mut a = buf;
|
||||
ref b = buf;
|
||||
ref b = buf; // diagnostic here: ref
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user