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
I attempted to require Foo in a where clause in three ways:
// using "where (): Foo" fails with the same error,// even if the following impl is present:// impl Foo for () {// type Bar = ();// }impl<T> FooforOption<T> whereT: Foo {
typeBar = T;
}
This is expected currently while the feature is incomplete - the only thing we've shipped so far is an explicit version where associated types must always be specified. So I'd expect the following to work:
fnfoo<T, U>(x: T) whereT: Foo<Bar = U> { }
(we should keep this issue until associated types are feature complete though)
Aim
Given a simple trait with an associated type:
I attempted to require
Foo
in awhere
clause in three ways:Expected Behavior
Expected the above cases to compile successfully
Bug
Each fails with
'Foo' is missing the associated type 'Bar'
:To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.39.0 noirc version = 0.39.0+68c32b4ffd9b069fe4b119327dbf4018c17ab9d4 (git version hash: 68c32b4, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & 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: