Open jfecher opened 1 year ago
The issue here seems to stem from the typo of ref
instead of Ref
:
map: Ref (HashMap U8 U16) = mut empty ()
a type annotation of a type application to an unbound type variable is rather unusual. Perhaps this issue will be fixed once we check type annotations must match exactly their target types rather than the current behavior where type variables in the annotation may still be bound to more specific types.
Will run fine, until adding a type annotation:
In which case it will cause the following compiler panic: