Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ main
Function
main
Source Code/06-18.rs:3–8 ·
view source on GitHub ↗
It prints: 19*/
()
Source
from the content-addressed store, hash-verified
1
/* It prints:
2
19*/
3
fn main() {
4
let a: i16 = 12;
5
let b: u32 = 4;
6
let c: f32 = 3.7;
7
print!(
"{}"
, a as i8 + b as i8 + c as i8);
8
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected