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

Add error message when trying to use &T as a type or &x as an expression #4548

Closed
jfecher opened this issue Mar 13, 2024 · 1 comment · Fixed by #6633
Closed

Add error message when trying to use &T as a type or &x as an expression #4548

jfecher opened this issue Mar 13, 2024 · 1 comment · Fixed by #6633
Labels
enhancement New feature or request

Comments

@jfecher
Copy link
Contributor

jfecher commented Mar 13, 2024

Problem

Noir doesn't have immutable references but due to its similarity with Rust, users may try to use them anyway.

Happy Case

Users should get a nice error message indicating Noir doesn't have immutable references. Potentially with a link to docs or similar explaining why this is.

Project Impact

None

Impact Context

No response

Workaround

None

Workaround Description

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@jfecher jfecher added the enhancement New feature or request label Mar 13, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Mar 13, 2024
@TomAFrench
Copy link
Member

Agreed, we can likely have this as just a warning similar to the rust lint.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants