You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to separate where clause to multiple lines as is commonly found in Rust
Expected Behavior
It to either fail with an informative error or be accepted as equivalent to a single-line where clause, i.e. impl<A, B> Default for Foo<A, B> where A: Default, B: Default
# Description
## Problem
Resolves#4809
## Summary
Also removes some duplicated parsing functions (I checked and their code
was exactly the same).
## Additional Context
None.
## 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.
Aim
Attempted to separate
where
clause to multiple lines as is commonly found in RustExpected Behavior
It to either fail with an informative error or be accepted as equivalent to a single-line where clause, i.e.
impl<A, B> Default for Foo<A, B> where A: Default, B: Default
Bug
Compiling the following:
fails with:
error: Unexpected {, expected one of bool, comptime, crate, dep, Field, fn, fmtstr, impl, str, &, (, [, integer type, Ident ┌─ /Users/michaelklein/Coding/rust/noir/test_programs/compile_success_empty/name_shadowing_template/binary/src/local_module.nr:19:1 │ 19 │ { │ - │
To Reproduce
nargo compile
the test program asmain.nr
Project Impact
Nice-to-have
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: