reflect icon indicating copy to clipboard operation
reflect copied to clipboard

Cannot return Self type

Open liusen-adalab opened this issue 5 months ago • 0 comments

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

liusen-adalab avatar Aug 30 '24 04:08 liusen-adalab