]> git.lizzy.rs Git - rust.git/blob - tests/ui/kindck/kindck-impl-type-params-2.stderr
Note predicate span on ImplDerivedObligation
[rust.git] / tests / ui / kindck / kindck-impl-type-params-2.stderr
1 error[E0277]: the trait bound `Box<{integer}>: Copy` is not satisfied
2   --> $DIR/kindck-impl-type-params-2.rs:13:16
3    |
4 LL |     take_param(&x);
5    |     ---------- ^^ the trait `Copy` is not implemented for `Box<{integer}>`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required for `Box<{integer}>` to implement `Foo`
10   --> $DIR/kindck-impl-type-params-2.rs:6:14
11    |
12 LL | impl<T:Copy> Foo for T {
13    |        ----  ^^^     ^
14    |        |
15    |        unsatisfied trait bound introduced here
16 note: required by a bound in `take_param`
17   --> $DIR/kindck-impl-type-params-2.rs:9:17
18    |
19 LL | fn take_param<T:Foo>(foo: &T) { }
20    |                 ^^^ required by this bound in `take_param`
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.