diff options
Diffstat (limited to 'src/test/ui/kindck/kindck-impl-type-params-2.stderr')
-rw-r--r-- | src/test/ui/kindck/kindck-impl-type-params-2.stderr | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/kindck/kindck-impl-type-params-2.stderr b/src/test/ui/kindck/kindck-impl-type-params-2.stderr new file mode 100644 index 000000000..89975e968 --- /dev/null +++ b/src/test/ui/kindck/kindck-impl-type-params-2.stderr @@ -0,0 +1,22 @@ +error[E0277]: the trait bound `Box<{integer}>: Foo` 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 because of the requirements on the impl of `Foo` for `Box<{integer}>` + --> $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`. |