Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
fn
/
param-mismatch-trait-fn.rs
blob: 69ded6a9068d7dad153385951af9209c5e8a40c1 [
file
] [
log
] [
blame
]
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
()
{}