bb010g is a user on weirder.earth. You can follow them or interact with them if you have an account anywhere in the fediverse.
bb010g @bb010g

Could somebody more experienced with please explain to me how play.rust-lang.org/?gist=fab9a is legal?

E0446: "A private type was used in a public type signature".

Yeah, right.

· Web · 0 · 0

@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.