The check only caught `for xs: (*m)` loop captures; passing a `*T` parameter or any pointer local where `T` is expected still slipped through to the LLVM verifier. Key the diagnostic on the lowered argument's type instead of the capture, so a `*Move` parameter forwarded into a by-value parameter is reported the same way. Ref-capture wording is preserved. Add example 216 (pointer-parameter case) alongside 215 (loop capture).
2 lines
2 B
Plaintext
2 lines
2 B
Plaintext
1
|