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

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