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
trait Test[a]:
type Item
f1(self): Vec[Item]
impl Test for U32:
type Item = Str
f1(self): Vec[Item] = Vec.withCapacity(0)
main
printStr(123u32.f1().toStr())
Output:
thread 'main' panicked at src/monomorph.rs:1094:36:
Unbound type Item
Not sure what the issue is yet, but my guess is we don't bind the associated types to mono types when monomorphising impl methods.
The text was updated successfully, but these errors were encountered:
Output:
Not sure what the issue is yet, but my guess is we don't bind the associated types to mono types when monomorphising
impl
methods.The text was updated successfully, but these errors were encountered: