Could somebody more experienced with #rustlang please explain to me how https://play.rust-lang.org/?gist=fab9ac3f7c92c7339c5788851764206d&version=stable&mode=debug is legal?
E0446: "A private type was used in a public type signature".
Yeah, right.
@bb010g Disclaimer: I basically don't know Rust, so this is basically a guess.
Isn't "pub fn expose() -> Leak { Leak }" a public function that returns something of type Leak?
Ergo, Leak can't be private?
Ergo removing "pub" from its declaration results in an error?
I have no idea, I'm completely guessing because as I said I basically don't know Rust.
@bb010g Disclaimer: I basically don't know Rust, so this is basically a guess.
Isn't "pub fn expose() -> Leak { Leak }" a public function that returns something of type Leak?
Ergo, Leak can't be private?
Ergo removing "pub" from its declaration results in an error?
I have no idea, I'm completely guessing because as I said I basically don't know Rust.