1 2 3 4 5 6 7 8 9 10
//! Single function test to isolate complexity calculation bug /// Simple function that should have exactly cyclomatic=1, cognitive=0 pub fn only_function() -> i32 { 42 } fn main() { println!("Result: {}", only_function()); }