cannot return reference iwth incompatible origin
What's the easiest way to deal with this error?

1 Reply
This is the whole code snippet:
As there is a
Drawable trait that does not know the shapes attribute, we cannot just replace ref [self] with ref [self.shapes]