]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/proc-macro/issue-50493.stderr
Change E0741 into E0742
[rust.git] / src / test / ui / proc-macro / issue-50493.stderr
index 559e8f0f2225bf0f6167572f101b9e76be79e385..6b8724457a6a3621bc2b3dd1fdb6795f713aa909 100644 (file)
@@ -1,15 +1,16 @@
-error: visibilities can only be restricted to ancestor modules
+error[E0742]: visibilities can only be restricted to ancestor modules
   --> $DIR/issue-50493.rs:8:12
    |
-LL |     pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
+LL |     pub(in restricted) field: usize,
    |            ^^^^^^^^^^
 
 error[E0616]: field `field` of struct `Restricted` is private
   --> $DIR/issue-50493.rs:6:10
    |
-LL | #[derive(Derive)] //~ ERROR field `field` of struct `Restricted` is private
+LL | #[derive(Derive)]
    |          ^^^^^^
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0616`.
+Some errors have detailed explanations: E0616, E0742.
+For more information about an error, try `rustc --explain E0616`.