Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
traits
/
trait-default-method-bound-subst2.rs
blob: 78eabba2d2320ffcd6afcfc4a398127472083515 [
file
] [
log
] [
blame
]
// run-pass
trait
A
<
T
>
{
fn
g
(&
self
,
x
:
T
)
->
T
{
x
}
}
impl
A
<
isize
>
for
isize
{
}
fn
f
<
T
,
V
:
A
<
T
>>(
i
:
V
,
j
:
T
)
->
T
{
i
.
g
(
j
)
}
pub
fn
main
()
{
assert_eq
!(
f
(
0
,
2
),
2
);
}