Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engine: Mutable borrows on two-dimensional arrays not allowed #1324

Open
karthikbhargavan opened this issue Feb 25, 2025 · 0 comments
Open
Labels
engine Issue in the engine

Comments

@karthikbhargavan
Copy link
Contributor

Hax fails on the example below with the error [HAX0003] (DirectAndMut) The mutation of this &mut is not allowed here.
However, it could be accepted here since internal &mut annotations can be ignored in favor of the outer &mut for the purposes of hax.

fn f(z: &mut[&mut[u8]]) {
    z[0][0] = 32;
}

Open this code snippet in the playground

@franziskuskiefer franziskuskiefer added the engine Issue in the engine label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine
Projects
None yet
Development

No branches or pull requests

2 participants