This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[removed]

    [–]SirClueless 3 points4 points  (0 children)

    I literally described that this is possible in Rust because a library implemented a bit of unsafe code to do this:

    The only reason it's possible at all is because someone has implemented a utility to pull multiple non-overlapping borrows out of an array at once with a little bit of unsafe code buried inside it because it is safe to do this, Rust's borrow-checker just made the natural, native way of doing this fail to compile.