summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-13359.rs
blob: 9129790c501e3d820ab57704af89ad85509c802b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn foo(_s: i16) { }

fn bar(_s: u32) { }

fn main() {
    foo(1*(1 as isize));
    //~^ ERROR mismatched types
    //~| expected `i16`, found `isize`

    bar(1*(1 as usize));
    //~^ ERROR mismatched types
    //~| expected `u32`, found `usize`
}