Sign in
rust
/
rust
/
6ea369cfee9420f6fe3f89e4bff7b01ac0ef920d
/
.
/
tests
/
ui
/
kindck
/
kindck-impl-type-params-2.rs
blob: 8b0771985dc3fe53cc50dadb2911156ff65cc307 [
file
]
trait
Foo
{
}
impl
<
T
:
Copy
>
Foo
for
T
{
}
fn
take_param
<
T
:
Foo
>(
foo
:
&
T
)
{
}
fn
main
()
{
let
x
:
Box
<
_
>
=
Box
::
new
(
3
);
take_param
(&
x
);
//~^ ERROR the trait bound `Box<{integer}>: Foo` is not satisfied
}