MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / f

Function f

Source Code/09-08.rs:5–5  ·  view source on GitHub ↗

ILLEGAL. The compiler prints the warning message: function is never used: `f` Then, the program prints: 232*/

()

Source from the content-addressed store, hash-verified

3Then, the program prints:
4232*/
5fn f() { print!("1"); }
6fn main() {
7 f(); // Prints 2
8 {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected