Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
typeck
/
ufcs-type-params.rs
blob: 5a6db4620fc18a8c185845eeefb7d9696823bfff [
file
] [
log
] [
blame
]
//@ run-pass
trait
Foo
<
T
>
{
fn
get
(&
self
)
->
T
;
}
impl
Foo
<
i32
>
for
i32
{
fn
get
(&
self
)
->
i32
{
*
self
}
}
fn
main
()
{
let
x
:
i32
=
1
;
Foo
::<
i32
>::
get
(&
x
);
}