fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.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> 8 | ^ - help: consider further restricting type parameter `U`: `, U: std::marker::Copy` 9 | _| 10 | | 11LL | | { 12LL | | } 13 | |_^ the trait `std::marker::Copy` is not implemented for `U` 14 15error[E0277]: the size for values of type `(dyn std::marker::Copy + 'static)` cannot be known at compilation time 16 --> $DIR/wf-fn-where-clause.rs:12:1 17 | 18LL | fn bar() where Vec<dyn Copy>:, {} 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 20 | 21 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::marker::Copy + 'static)` 22 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 23 = note: required by `std::vec::Vec` 24 25error[E0038]: the trait `std::marker::Copy` cannot be made into an object 26 --> $DIR/wf-fn-where-clause.rs:12:1 27 | 28LL | fn bar() where Vec<dyn Copy>:, {} 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object 30 | 31 = note: the trait cannot require that `Self : Sized` 32 33error: aborting due to 3 previous errors 34 35Some errors have detailed explanations: E0038, E0277. 36For more information about an error, try `rustc --explain E0038`.