]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-81293.rs
Auto merge of #105102 - compiler-errors:copy-impl-considering-regions, r=lcnr
[rust.git] / tests / 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 }