// After split_at the parent slice cannot be used while the halves live: E2101 from the verifier. // expect: reject E2101 // phase: 6 // spec: docs/spec/15-source-language.md module demo.splitparent fn main() -> u64 effects [] { var buf: [u64; 4] = zero; mut s = buf; let (l, r) = s.split_at(2); s[0] = 1; l[0] = 2; return 0; }