How to return an expression from a function in Rust fn add() { 5*5 // omit semicolon for implicit return (similar to JS) } // OR fn add() { return 5*5; } You can do it from if statements too... if fizzish == "fizz" { "foo" } else { "baz" }