15 lines
350 B
Rust
15 lines
350 B
Rust
// expect: reject E2101
|
|
// phase: 6
|
|
// spec: docs/spec/08-verifier.md; docs/spec/15-source-language.md §5
|
|
// AIR twin: phase1/reject/copy_overlapping.air
|
|
module test.copy_overlapping
|
|
|
|
fn f() -> void effects [] {
|
|
var x: [u8; 8] = zero;
|
|
mut s = x;
|
|
ref src = s;
|
|
slice.copy(s, src); // diagnostic here
|
|
}
|
|
|
|
fn main() -> void effects [] {}
|