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

Can't assign to array indexes #1626

Closed
AlicanC opened this issue May 21, 2022 · 1 comment
Closed

Can't assign to array indexes #1626

AlicanC opened this issue May 21, 2022 · 1 comment

Comments

@AlicanC
Copy link
Contributor

AlicanC commented May 21, 2022

script;

fn main() {
    let mut arr: [u8; 1] = [0];
    arr[0] = 1;
//  ^^^^^^^^^^ This expression is not valid on the left hand side of a reassignment.
}
@mohammadfawaz
Copy link
Contributor

mohammadfawaz commented May 22, 2022

Ah yes.. mutable arrays are not implemented yet. See #428

We're prioritizing Vec at the moment which will enable this behaviour and more.

Closing in favor of #428

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

2 participants