1 error[E0277]: the trait bound `U: Copy` is not satisfied
2 --> $DIR/wf-fn-where-clause.rs:8:24
4 LL | trait ExtraCopy<T:Copy> { }
5 | ---- required by this bound in `ExtraCopy`
7 LL | fn foo<T,U>() where T: ExtraCopy<U>
8 | ^^^^^^^^^^^^ the trait `Copy` is not implemented for `U`
10 help: consider further restricting type parameter `U`
12 LL | fn foo<T,U>() where T: ExtraCopy<U>, U: Copy
15 error[E0277]: the size for values of type `(dyn Copy + 'static)` cannot be known at compilation time
16 --> $DIR/wf-fn-where-clause.rs:12:16
18 LL | fn bar() where Vec<dyn Copy>:, {}
19 | ^^^^^^^^^^^^^ doesn't have a size known at compile-time
22 | - required by this bound in `Vec`
24 = help: the trait `Sized` is not implemented for `(dyn Copy + 'static)`
25 help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
26 --> $DIR/wf-fn-where-clause.rs:16:12
29 | ^ this could be changed to `T: ?Sized`...
31 | - ...if indirection was used here: `Box<T>`
33 error[E0038]: the trait `Copy` cannot be made into an object
34 --> $DIR/wf-fn-where-clause.rs:12:16
36 LL | fn bar() where Vec<dyn Copy>:, {}
37 | ^^^^^^^^^^^^^ the trait `Copy` cannot be made into an object
39 = note: the trait cannot be made into an object because it requires `Self: Sized`
41 error: aborting due to 3 previous errors
43 Some errors have detailed explanations: E0038, E0277.
44 For more information about an error, try `rustc --explain E0038`.