about summary refs log tree commit diff
path: root/tests/ui/fn/param-mismatch-no-names.rs
blob: 05f3de190ea92bd52869364a75283fc83ca3b9dd (plain)
1
2
3
4
5
6
7
8
fn same_type<T>(_: T, _: T) {}

fn f<X, Y>(x: X, y: Y) {
    same_type([x], Some(y));
    //~^ ERROR mismatched types
}

fn main() {}