Skip to content

Wrong path substitution when using Self as argument #8

Description

@pankcuf

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, }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions