blob: 204a7f6b1b2d17df78c99f2db4a06282e4c2e0b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
fn foo(a: u32, b: u32) {
a + b;
}
fn bar(a: u32, b: u32) {
a + b;
}
fn main() {
let x = 1;
let y = 2;
let z = 3;
foo(1 as u32 + //~ ERROR cannot add `()` to `u32`
bar(x,
y),
z)
}
|