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

hax_lib::attributes: Self is not substitued in ensures/requires #783

Closed
W95Psp opened this issue Jul 18, 2024 · 0 comments · Fixed by #790
Closed

hax_lib::attributes: Self is not substitued in ensures/requires #783

W95Psp opened this issue Jul 18, 2024 · 0 comments · Fixed by #790
Labels
attributes bug Something isn't working workaround This bug has a workaround

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Jul 18, 2024

From issue #781:

#[hax_lib::attributes]
impl ... for TheType {
  #[requires(...)]
  fn f(&self, x: &Self) {}
}

Will fail because of the explicit Self. We need to substitute Self by TheType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attributes bug Something isn't working workaround This bug has a workaround
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant