Debian Codegraph @

gcc/testsuite/rust/compile/implicit_returns_err3.rs

raw
1 fn test(x: i32) -> i32 { // { dg-error "mismatched types, expected .i32. but got ...." }
2 if x > 1 {
3 return 1;
4 }
5 }
6
7 fn main() {
8 let a = test(9);
9 }