summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/two-mismatch-notes.rs
blob: 1309041ab9a59b346c4b3b38d05055600c5d5dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[derive(Copy, Clone)]
struct Wrapper<T>(T);

fn foo(_: fn(i32), _: Wrapper<i32>) {}

fn f(_: u32) {}

fn main() {
    let w = Wrapper::<isize>(1isize);
    foo(f, w); //~ ERROR arguments to this function are incorrect
}