summary refs log tree commit diff
path: root/tests/ui/issues/issue-13359.rs
blob: 5d31d7f861c681ad5bcf8a23f371be625c23ab80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ dont-require-annotations: NOTE

fn foo(_s: i16) { }

fn bar(_s: u32) { }

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

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