]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | fn foo(_s: i16) { } |
223e47cc | 2 | |
1a4d82fc | 3 | fn bar(_s: u32) { } |
223e47cc LB |
4 | |
5 | fn 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 | } |