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

Vec::get requires a mutable Vec #2775

Closed
jfecher opened this issue Sep 21, 2023 · 0 comments · Fixed by #2776
Closed

Vec::get requires a mutable Vec #2775

jfecher opened this issue Sep 21, 2023 · 0 comments · Fixed by #2776
Labels
bug Something isn't working

Comments

@jfecher
Copy link
Contributor

jfecher commented Sep 21, 2023

Aim

Trying to call v.get(0) where v: Vec<Field>

Expected Behavior

The call to return the first element of the vector

Bug

A type error: expected &mut Vec<_>, got Vec<Field>

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@jfecher jfecher added the bug Something isn't working label Sep 21, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Sep 21, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant