1 error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2 --> $DIR/wf-fn-where-clause.rs:8:1
4 LL | trait ExtraCopy<T:Copy> { }
5 | ----------------------- required by `ExtraCopy`
7 LL | / fn foo<T,U>() where T: ExtraCopy<U>
10 | |_^ the trait `std::marker::Copy` is not implemented for `U`
12 = help: consider adding a `where U: std::marker::Copy` bound
14 error[E0277]: the size for values of type `(dyn std::marker::Copy + 'static)` cannot be known at compilation time
15 --> $DIR/wf-fn-where-clause.rs:12:1
17 LL | fn bar() where Vec<dyn Copy>:, {}
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::marker::Copy + 'static)`
21 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
22 = note: required by `std::vec::Vec`
24 error[E0038]: the trait `std::marker::Copy` cannot be made into an object
25 --> $DIR/wf-fn-where-clause.rs:12:1
27 LL | fn bar() where Vec<dyn Copy>:, {}
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object
30 = note: the trait cannot require that `Self : Sized`
32 error: aborting due to 3 previous errors
34 Some errors have detailed explanations: E0038, E0277.
35 For more information about an error, try `rustc --explain E0038`.