]> git.proxmox.com Git - rustc.git/blame - src/test/ui/expr/if/if-branch-types.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / expr / if / if-branch-types.rs
CommitLineData
1a4d82fc 1fn main() {
85aaf69f 2 let x = if true { 10i32 } else { 10u32 };
dfeec247 3 //~^ ERROR `if` and `else` have incompatible types
60c5eb7d 4 //~| expected `i32`, found `u32`
1a4d82fc 5}