You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently dependent types lifetime must not depend on the lifetime of the iterator. This is problematic when the method of iteration might alter the structure but copy is expensive or impossible (I run into this while binding C API but this affects also database cursors etc.).
Here's an example of code which shows the issue ([u8; 4096] is just an example of expensive-to-copy data).
(This might be partially related to issue #44950)
Currently dependent types lifetime must not depend on the lifetime of the iterator. This is problematic when the method of iteration might alter the structure but copy is expensive or impossible (I run into this while binding C API but this affects also database cursors etc.).
Here's an example of code which shows the issue (
[u8; 4096]
is just an example of expensive-to-copy data).This is even though in most cases a copy is not needed.
The text was updated successfully, but these errors were encountered: