☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
func3.rs
☽
☼
gcc/testsuite/rust/compile/func3.rs
code
plain
raw
1
fn test(a: i32, b: i32) -> i32 {
2
a + b
3
}
4
5
fn main() {
6
let a = test(1, true);
7
// { dg-error "mismatched types, expected .i32. but got .bool." "" { target *-*-* } .-1 }
8
}