]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13359.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-13359.rs
CommitLineData
1a4d82fc 1fn foo(_s: i16) { }
223e47cc 2
1a4d82fc 3fn bar(_s: u32) { }
223e47cc
LB
4
5fn main() {
1a4d82fc 6 foo(1*(1 as isize));
85aaf69f 7 //~^ ERROR mismatched types
60c5eb7d 8 //~| expected `i16`, found `isize`
1a4d82fc
JJ
9
10 bar(1*(1 as usize));
85aaf69f 11 //~^ ERROR mismatched types
60c5eb7d 12 //~| expected `u32`, found `usize`
223e47cc 13}