mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +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() {}
|