]> git.proxmox.com Git - rustc.git/blob - src/test/ui/union/union-derive-clone.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / union / union-derive-clone.stderr
1 error[E0277]: the trait bound `U1: std::marker::Copy` is not satisfied
2 --> $DIR/union-derive-clone.rs:3:10
3 |
4 LL | #[derive(Clone)]
5 | ^^^^^ the trait `std::marker::Copy` is not implemented for `U1`
6 |
7 = note: required by `std::clone::AssertParamIsCopy`
8
9 error[E0599]: no method named `clone` found for type `U4<CloneNoCopy>` in the current scope
10 --> $DIR/union-derive-clone.rs:30:15
11 |
12 LL | union U4<T> {
13 | ----------- method `clone` not found for this
14 ...
15 LL | let w = u.clone();
16 | ^^^^^ method not found in `U4<CloneNoCopy>`
17 |
18 = note: the method `clone` exists but the following trait bounds were not satisfied:
19 `U4<CloneNoCopy> : std::clone::Clone`
20 = help: items from traits can only be used if the trait is implemented and in scope
21 = note: the following trait defines an item `clone`, perhaps you need to implement it:
22 candidate #1: `std::clone::Clone`
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0277, E0599.
27 For more information about an error, try `rustc --explain E0277`.