Replies: 1 comment
-
Current workaround is to use identical function bodies for two distinct more concrete function prototypes:
and:
which isn't nice, but at least it gets me going for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From the docs I believe the function in the attached snapshot is more or less along the correct lines, but as you can see, the compiler isn't happy with
TriangleMarker
orCross
, cases, but theCircle
variant is apparently fine.The docs (for TriangleMarker and Cross) have:
but then drop the lifetime on the Coord generic specifier (for Circle):
Is this discrepancy causing or related to my issue? How can I work around this?
Beta Was this translation helpful? Give feedback.
All reactions