rust/tests/ui/fn/param-mismatch-no-names.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
134 B
Rust
Raw Normal View History

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