mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 19:08:20 +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() {}
|