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

Wrong path substitution when using Self as argument #8

Open
pankcuf opened this issue Dec 6, 2023 · 0 comments
Open

Wrong path substitution when using Self as argument #8

pankcuf opened this issue Dec 6, 2023 · 0 comments

Comments

@pankcuf
Copy link
Owner

pankcuf commented Dec 6, 2023

When using like this
#[ferment_macro::export] pub trait TransportClient: Send + Sized { type Error: CanRetry + Send; fn with_uri(uri: Uri) -> Self; }
It creates vtable like this:
pub struct TransportClient_VTable { pub with_uri: unsafe extern "C" fn(uri: *mut crate::fermented::types::asyn::query::Uri) -> *mut crate::fermented::types::asyn::query::Self, }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant