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
Trying to run a program with generics and possibly multiple where clauses on functions or impls. E.g the impl_with_where_clause test:
fnmain(){let array:[Field;3] = [1,2,3];assert(array.eq(array));// Ensure this still works if we have to infer the type of the integer literalslet array = [1,2,3];assert(array.eq(array));}traitEq{fneq(self,other:Self) -> bool;}impl<T>Eqfor[T;3]whereT:Eq{fneq(self,other:Self) -> bool{letmut ret = true;for i in0 .. self.len(){
ret &= self[i].eq(other[i]);}
ret
}}implEqforField{fneq(self,other:Field) -> bool{self == other
}}
Expected Behavior
The test to typecheck and execute successfully.
Bug
The application panicked (crashed).
Message: ICE: missing trait impl - should be caught during type checking: [TraitConstraint { typ: NamedGeneric(Shared(RefCell { value: Bound(FieldElement) }), "T"), trait_id: TraitId(ModuleId { krate: Root(1), local_id: LocalModuleId(Index { index: 1, generation: 0 }) }) }]
Location: compiler/noirc_frontend/src/monomorphization/mod.rs:824
This is a bug. We may have already fixed this in newer versions of Nargo so try searching for similar issues at https://github.com/noir-lang/noir/issues/.
If there isn't an open issue for this bug, consider opening one at https://github.com/noir-lang/noir/issues/new?labels=bug&template=bug_report.yml
exit 101
Note that this is an existing issue, but the impl_with_where_clause test only started being affected by it after #3407 for unknown reasons.
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
The text was updated successfully, but these errors were encountered:
Aim
Trying to run a program with generics and possibly multiple
where
clauses on functions or impls. E.g theimpl_with_where_clause
test:Expected Behavior
The test to typecheck and execute successfully.
Bug
Note that this is an existing issue, but the
impl_with_where_clause
test only started being affected by it after #3407 for unknown reasons.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
The text was updated successfully, but these errors were encountered: