]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/union/union-derive-clone.thirunsafeck.stderr
Auto merge of #94066 - Mark-Simulacrum:factor-out-simple-def-kind, r=davidtwco
[rust.git] / src / test / ui / union / union-derive-clone.thirunsafeck.stderr
index 146a627bcdef7f160476cd730dd6bc69443debfd..e8e65fe5d1d1de2704faf9f1ff8821ab872849c3 100644 (file)
@@ -16,9 +16,9 @@ LL |     let w = u.clone();
    = note: the following trait bounds were not satisfied:
            `CloneNoCopy: Copy`
            which is required by `U5<CloneNoCopy>: Clone`
-help: consider annotating `CloneNoCopy` with `#[derive(Copy)]`
+help: consider annotating `CloneNoCopy` with `#[derive(Clone, Copy)]`
    |
-LL | #[derive(Copy)]
+LL | #[derive(Clone, Copy)]
    |
 
 error[E0277]: the trait bound `U1: Copy` is not satisfied