cli: validate Copy content of source owning arrays
This commit is contained in:
1 parent
caf3b86e80
commit
cfbe01a16f
42 files changed
+608
-3
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// expect: accept
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §10; docs/spec/03-memory-model.md §25
|
||||
module test.own_array_content
|
||||
struct Phantom<T> { item: u64 }
|
||||
fn unused<T>(p: own_array<Phantom<own<T>>>) -> void effects [] { trap; }
|
||||
fn main() -> void effects [] {}
|
||||
Reference in new issue
Block a user