2014-04-10 19:21:01 -05:00
|
|
|
fn foo(_s: i16) { }
|
|
|
|
|
|
|
|
fn bar(_s: u32) { }
|
|
|
|
|
|
|
|
fn main() {
|
2015-01-08 04:54:35 -06:00
|
|
|
foo(1*(1 as isize));
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2019-11-15 11:37:01 -06:00
|
|
|
//~| expected `i16`, found `isize`
|
2014-04-10 19:21:01 -05:00
|
|
|
|
2015-01-08 05:02:42 -06:00
|
|
|
bar(1*(1 as usize));
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2019-11-15 11:37:01 -06:00
|
|
|
//~| expected `u32`, found `usize`
|
2014-04-10 19:21:01 -05:00
|
|
|
}
|