mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-19 19:17:31 +00:00
9 lines
134 B
Rust
9 lines
134 B
Rust
fn same_type<T>(_: T, _: T) {}
|
|
|
|
fn f<X, Y>(x: X, y: Y) {
|
|
same_type([x], Some(y));
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|