Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make nested slice error more clear for
[[T]; N]
case (#5906)
# Description ## Problem\* The `NestedSlice` error is unclear when there is only one slice: ```bash error: Nested slices are not supported ┌─ /Users/michaelklein/Coding/noir/two_tag/src/main.nr:31:12 │ 31 │ rules: [[Field]; N], │ ------------ Try to use a constant sized array instead ``` ## Summary\* Rephrases the `NestedSlice` error message to make it more clear that slices within arrays or other slices are disallowed. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information