Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not solve typeclass constraint #1213

Open
franziskuskiefer opened this issue Dec 28, 2024 · 0 comments
Open

Could not solve typeclass constraint #1213

franziskuskiefer opened this issue Dec 28, 2024 · 0 comments
Labels
f* F* backend

Comments

@franziskuskiefer
Copy link
Member

use hax_lib::*;

trait Op {
   fn x() -> Self;
   fn y() -> Self;
}

struct S {}

impl Op for S {
   fn x() -> Self {
      S{}
   }

   fn y() -> Self {
      Self::x()
   }
}

Open this code snippet in the playground

* Error 228 at Playground.fst(58,9-58,40):
  - Could not solve typeclass constraint `Playground.t_Op Playground.t_S`
  - See also FStar.Tactics.Typeclasses.fst(297,6-300,7)
1 error was reported (see above)
make[1]: *** [Makefile:79: Playground.fst.checked] Error 1
make: *** [Makefile:12: all] Error 2
@franziskuskiefer franziskuskiefer added the f* F* backend label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f* F* backend
Projects
None yet
Development

No branches or pull requests

1 participant