]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/issue-81293.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / typeck / issue-81293.rs
1 fn main() {
2 let a: u16;
3 let b: u16 = 42;
4 let c: usize = 5;
5
6 a = c + b * 5; //~ ERROR: mismatched types [E0308]
7 //~| ERROR: mismatched types [E0308]
8 //~| ERROR: cannot add `u16` to `usize` [E0277]
9 }