]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/union/union-derive-clone.mirunsafeck.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / union / union-derive-clone.mirunsafeck.stderr
index b80e8b988adb174004542d3d5880d1ca5a959164..4d23d230fa3f6b8e1c8c9c84e9682c31b35fa21a 100644 (file)
@@ -9,7 +9,8 @@ note: required by a bound in `AssertParamIsCopy`
    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
 help: consider annotating `U1` with `#[derive(Copy)]`
    |
-LL | #[derive(Copy)]
+LL + #[derive(Copy)]
+LL | union U1 {
    |
 
 error[E0599]: the method `clone` exists for union `U5<CloneNoCopy>`, but its trait bounds were not satisfied
@@ -34,7 +35,8 @@ LL | #[derive(Clone, Copy)]
    |          ^^^^^ unsatisfied trait bound introduced in this `derive` macro
 help: consider annotating `CloneNoCopy` with `#[derive(Clone, Copy)]`
    |
-LL | #[derive(Clone, Copy)]
+LL + #[derive(Clone, Copy)]
+LL | struct CloneNoCopy;
    |
 
 error: aborting due to 2 previous errors