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
It seems like Flux is expecting an instance of MyTrait rather than an MPU and does not recognize that MPU implements MyTrait. I'm pretty sure I'm just missing some syntax, but I could use a pointer lol.
On a related note, are there any plans for documentation on associated refinements? They are extremely useful, but a little hard to use due to the weird syntax.
The text was updated successfully, but these errors were encountered:
@enjhnsn2 -- this is pesky indeed. I wonder if you can just "inline" the associated predicate here, so in the signature replace Self as MyTrait>::enabled(r) with r.powered ?
Oh yeah, that's a good workaround. It will work in this case because we do normalize the sort of Self. What we don't normalize is the sort of <Self as MyTrait>::enabled
When I try to use an associated refinement in a function spec, Flux does not seem to like it when I pass in a
Self
.For example, when I verify:
I get the error:
It seems like Flux is expecting an instance of
MyTrait
rather than anMPU
and does not recognize that MPU implements MyTrait. I'm pretty sure I'm just missing some syntax, but I could use a pointer lol.On a related note, are there any plans for documentation on associated refinements? They are extremely useful, but a little hard to use due to the weird syntax.
The text was updated successfully, but these errors were encountered: