mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 01:17:39 +00:00
11 lines
161 B
Rust
11 lines
161 B
Rust
![]() |
trait Foo {
|
||
|
fn same_type<T>(_: T, _: T);
|
||
|
}
|
||
|
|
||
|
fn f<T: Foo, X, Y>(x: X, y: Y) {
|
||
|
T::same_type([x], Some(y));
|
||
|
//~^ ERROR mismatched types
|
||
|
}
|
||
|
|
||
|
fn main() {}
|