cli: validate exclusive source places before AIR
This commit is contained in:
1 parent
dcd5f1f702
commit
41f3afbf05
54 files changed
+541
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §10
|
||||
module test.store_modes
|
||||
struct Pair { a: u64 }
|
||||
struct Box { pair: Pair, data: [u64; 2] }
|
||||
fn unused(p: ref<u64>) -> void effects [] { mut q = p; }
|
||||
fn main() -> u64 effects [] { return 42; }
|
||||
Reference in new issue
Block a user