]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-fn-where-clause.stderr
Merge branch 'debian/sid' into debian/experimental
[rustc.git] / src / test / ui / wf / wf-fn-where-clause.stderr
1 error[E0277]: the trait bound `U: std::marker::Copy` is not satisfied
2 --> $DIR/wf-fn-where-clause.rs:8:1
3 |
4 LL | trait ExtraCopy<T:Copy> { }
5 | ----------------------- required by `ExtraCopy`
6 LL |
7 LL | / fn foo<T,U>() where T: ExtraCopy<U>
8 LL | | {
9 LL | | }
10 | |_^ the trait `std::marker::Copy` is not implemented for `U`
11 |
12 = help: consider adding a `where U: std::marker::Copy` bound
13
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
16 |
17 LL | 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
24 error[E0038]: the trait `std::marker::Copy` cannot be made into an object
25 --> $DIR/wf-fn-where-clause.rs:12:1
26 |
27 LL | 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
32 error: aborting due to 3 previous errors
33
34 Some errors have detailed explanations: E0038, E0277.
35 For more information about an error, try `rustc --explain E0038`.