blob: 076b8c944b8a4d79869e1058f148dd72ca5428e8 (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
let a: u16;
let b: u16 = 42;
let c: usize = 5;
a = c + b * 5; //~ ERROR: mismatched types [E0308]
//~| ERROR: mismatched types [E0308]
//~| ERROR: cannot add `u16` to `usize` [E0277]
}
|