You should not get dead_code warnings for that code unless you are compiling the code in a way that means fn main()isn't called.
It looks like if you choose “Build” instead of “Run”, the Playground will compile your code as a library instead of a binary, which would cause that. Consider this a quirk of the Playground (which is trying to avoid presenting you with a “binary or library” menu to have to pick from), not something about Rust itself.
Does the upper-left red button say Build instead of Run? If so, you're building a library and not a binary, and other crates can't call your private functions, so they're unused. You could try: