Closed Ramla-I closed 1 year ago
Could you try whether it helps to set use_new_encoder
to false
? At least for me, it fixes the problem on master.
We are in the process of refactoring Prusti and have a couple of checks that ensure that the results computed by the old and new code are the same. It seems that you found an example where this is not the case. Setting use_new_encoder
to false
disables the check.
It fixes the problem for me too. Thanks for the solution!
I'm trying to write a function which takes a generic linked list as an argument which is instantiated with a generic type. I get the error message:
[Prusti: invalid specification] return type of pure function does not implement Copy
which is incorrect because the trait bounds specify that the type must implement Copy, and the type does.Specifically, this function verifies:
but this one does not:
The complete code is here: https://github.com/Ramla-I/generic_linked_list
The Prusti assistant output is: