]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr
Update tests
[rust.git] / src / test / ui / derives / derive-on-trait-item-or-impl-item.stderr
index b3aa886cd49264342c389f878aadacfd68fd05dd..e892d3f0863036ff6c40b2da5e30d8fbd92204cd 100644 (file)
@@ -1,10 +1,10 @@
-error: `derive` may only be applied to structs, enums and unions
+error[E0774]: `derive` may only be applied to structs, enums and unions
   --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
    |
 LL |     #[derive(Clone)]
    |     ^^^^^^^^^^^^^^^^
 
-error: `derive` may only be applied to structs, enums and unions
+error[E0774]: `derive` may only be applied to structs, enums and unions
   --> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
    |
 LL |     #[derive(Clone)]
@@ -12,3 +12,4 @@ LL |     #[derive(Clone)]
 
 error: aborting due to 2 previous errors
 
+For more information about this error, try `rustc --explain E0774`.