Skip to content

Cannot return Self type #38

@liuzsen

Description

@liuzsen

It seems there are five return types supported currently. This code prints error message.
How can I return the Self type?
Thanks for the great project!

expected one of: parentheses, `&`, `dyn`, identifier
reflect::library! {
    extern crate aa {
        mod provider {
            type ProviderContext;
            type AA;

            trait Provider {
                fn build(&mut ProviderContext) -> 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