fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied 2 --> $DIR/wf-fn-where-clause.rs:8:1 3 | 4LL | trait ExtraCopy<T:Copy> { } 5 | ----------------------- required by `ExtraCopy` 6LL | 7LL | / fn foo<T,U>() where T: ExtraCopy<U> 8LL | | { 9LL | | } 10 | |_^ the trait `std::marker::Copy` is not implemented for `U` 11 | 12 = help: consider adding a `where U: std::marker::Copy` bound 13 14error[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 16 | 17LL | fn bar() where Vec<dyn Copy>:, {} 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 19 | 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` 23 24error[E0038]: the trait `std::marker::Copy` cannot be made into an object 25 --> $DIR/wf-fn-where-clause.rs:12:1 26 | 27LL | fn bar() where Vec<dyn Copy>:, {} 28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object 29 | 30 = note: the trait cannot require that `Self : Sized` 31 32error: aborting due to 3 previous errors 33 34Some errors have detailed explanations: E0038, E0277. 35For more information about an error, try `rustc --explain E0038`.