tests: audit source boundaries and cancellation join twins
This commit is contained in:
1 parent
5371eb7a2f
commit
50d1bb2c4b
20 files changed
+363
-10
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §16
|
||||
module test.linear
|
||||
fn bad(owner: own<u64>) -> u64 effects [] {
|
||||
let items = [move owner];
|
||||
let (part, other) = array.unpack(move items); // diagnostic here
|
||||
return own.take(move part);
|
||||
}
|
||||
fn main() -> u64 effects [] { return 42; }
|
||||
Reference in new issue
Block a user