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