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