LL | pub(in Tr) struct Z;
| ^^ not a module
-error[E0741]: visibilities can only be restricted to ancestor modules
+error[E0742]: visibilities can only be restricted to ancestor modules
--> $DIR/resolve-bad-visibility.rs:6:8
|
LL | pub(in std::vec) struct F;
error: aborting due to 5 previous errors
-Some errors have detailed explanations: E0433, E0741.
+Some errors have detailed explanations: E0433, E0742.
For more information about an error, try `rustc --explain E0433`.