Default trait method implementation blocked by no_method_body()
#627
Closed
marshtompsxd
started this conversation in
General
Replies: 2 comments
-
This is currently unsupported, I believe; spec functions in trait definitions are only intended to be defined by implementers. Can you share more of what you're trying to accomplish? There may be another formulation that works and that we support. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is still currently unsupported, but we now emit a sensible error message. Closing, as this is probably on the roadmap at some point. |
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
-
Hi Verus team,
I am trying to implement some traits with default method implementation like
However, Verus reports that
And it seems that I cannot have any statements before/after no_method_body().
I am wondering is there a way to have default trait implementation for spec/exec function in Verus now?
Beta Was this translation helpful? Give feedback.
All reactions