summaryrefslogtreecommitdiffstats
path: root/src/test/ui/kindck/kindck-impl-type-params-2.stderr
blob: 930d96375bff48b07d741e135aec26ca3156fbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0277]: the trait bound `Box<{integer}>: Copy` is not satisfied
  --> $DIR/kindck-impl-type-params-2.rs:13:16
   |
LL |     take_param(&x);
   |     ---------- ^^ the trait `Copy` is not implemented for `Box<{integer}>`
   |     |
   |     required by a bound introduced by this call
   |
note: required for `Box<{integer}>` to implement `Foo`
  --> $DIR/kindck-impl-type-params-2.rs:6:14
   |
LL | impl<T:Copy> Foo for T {
   |              ^^^     ^
note: required by a bound in `take_param`
  --> $DIR/kindck-impl-type-params-2.rs:9:17
   |
LL | fn take_param<T:Foo>(foo: &T) { }
   |                 ^^^ required by this bound in `take_param`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.