MCPcopy Create free account
hub / github.com/CleanCut/ultimate_rust2 / main

Function main

exercise/idiomatic/src/main.rs:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const pi:f32=3.14159265358979323846;
12fn count_to_5()->i32{let mut foo =0;loop{if foo>pi as i32{if foo > 5{break;}}foo=foo+1;}return 5;}
13fn main() {
14println!("I can count to {}", count_to_5());
15}
16#[cfg(test)]
17mod test {
18use super::*;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected