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
I expected to see this happen: Verification to pass, with the implementation of the foo trait method for Bar being stubbed out.
Instead, this happened:
error: failed to resolve `Bar::foo`: unable to find `foo` inside struct `Bar`
--> <...>
|
559 | #[kani::stub(Bar::foo, foo_stub)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `kani::stub` (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue @roypat. I believe this is a duplicate of #1997. Let me know if the original issue covers your use case, and we can close this one. Thanks!
That said, I wonder if we should just split #1997 into two issues. We can use #1997 to track disambiguation using the qualified path type and use this issue to track stubbing trait methods without ambiguous definition. @feliperodri any thoughts?
Thanks for reporting this issue @roypat. I believe this is a duplicate of #1997. Let me know if the original issue covers your use case, and we can close this one. Thanks!
Ahhh, right, yes #1997 does indeed look like a general case of this. Sorry about that! Feel free to close as duplicate :)
I tried this code:
using the following command line invocation:
with Kani version: 0.29.0
I expected to see this happen: Verification to pass, with the implementation of the
foo
trait method forBar
being stubbed out.Instead, this happened:
The text was updated successfully, but these errors were encountered: