]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-impl-type-params-2.stderr
Rollup merge of #100718 - GuillaumeGomez:fix-item-info, r=jsha
[rust.git] / src / test / ui / kindck / kindck-impl-type-params-2.stderr
1 error[E0277]: the trait bound `Box<{integer}>: Foo` 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 note: required by a bound in `take_param`
15   --> $DIR/kindck-impl-type-params-2.rs:9:17
16    |
17 LL | fn take_param<T:Foo>(foo: &T) { }
18    |                 ^^^ required by this bound in `take_param`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.