error[E0277]: the trait bound `Box<{integer}>: Foo` is not satisfied
--> $DIR/kindck-inherited-copy-bound.rs:21:16
|
-LL | fn take_param<T:Foo>(foo: &T) { }
- | --- required by this bound in `take_param`
-...
LL | take_param(&x);
| ^^ the trait `Copy` is not implemented for `Box<{integer}>`
|
|
LL | impl<T:Copy> Foo for T {
| ^^^ ^
+note: required by a bound in `take_param`
+ --> $DIR/kindck-inherited-copy-bound.rs:17:17
+ |
+LL | fn take_param<T:Foo>(foo: &T) { }
+ | ^^^ required by this bound in `take_param`
error[E0038]: the trait `Foo` cannot be made into an object
--> $DIR/kindck-inherited-copy-bound.rs:28:13