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

'... and assignment' operators cause an error on arrays. #295

Open
simonjwinwood opened this issue Aug 12, 2024 · 0 comments
Open

'... and assignment' operators cause an error on arrays. #295

simonjwinwood opened this issue Aug 12, 2024 · 0 comments
Assignees

Comments

@simonjwinwood
Copy link

Hi, the following causes Aeneas to fail

fn doit(x : &mut [usize]) {
    x[0] += 1;
}

with error

[Error] Can not apply a projection to the ⊥ value

This only seems to happen with arrays/slices (i.e., not e.g. usizes), and happens with other similar '... and assignment' operators. This also happens with

fn doit(x : &mut [usize; 1]) {
    x[0] += 1;
}
@Nadrieril Nadrieril assigned Nadrieril and sonmarcho and unassigned Nadrieril Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants