impl SApp {
pub fn new() -> Self { SApp { } }
pub fn version(self) -> Self { self }
pub fn get_name(&self) -> &str { "me" }
}
let m = SApp::new().version();
println!("{:?}", m.get_name());
intellij doesn't know the type of 'm'. If 'new' and 'version' are changed to return 'SApp' everything works fine.
I'm just working on this:)
Most helpful comment
I'm just working on this:)